1234567891011121314151617181920 |
- <?php if (!defined('BASEPATH')) exit('No direct access allowed.');
- class MY_Loader extends CI_Loader
- {
- public function __construct()
- {
- parent::__construct();
- }
- public function set_front_theme($theme='v1')
- {
- $this->_ci_view_paths = array(APPPATH.'views/'.$theme.'/' => TRUE);
- }
- public function set_admin_theme()
- {
- $this->_ci_view_paths = array(APPPATH.'views/admin/' => TRUE);
- }
- }
|