MY_Loader.php 398 B

1234567891011121314151617181920
  1. <?php if (!defined('BASEPATH')) exit('No direct access allowed.');
  2. class MY_Loader extends CI_Loader
  3. {
  4. public function __construct()
  5. {
  6. parent::__construct();
  7. }
  8. public function set_front_theme($theme='v1')
  9. {
  10. $this->_ci_view_paths = array(APPPATH.'views/'.$theme.'/' => TRUE);
  11. }
  12. public function set_admin_theme()
  13. {
  14. $this->_ci_view_paths = array(APPPATH.'views/admin/' => TRUE);
  15. }
  16. }