public function __construct() { $this->_options['ci'] = $this->ci =& get_instance(); $this->theme = APP::get_namespace_id() == 'admin' ? false : true; if (APP_DIR && is_dir(FCPATH . 'plugins/' . APP_DIR . '/') && $this->ci->controller == 'admin') { // 表示插件的后台 $this->theme = false; } }
public function __construct() { $this->_options['ci'] = $this->ci =& get_instance(); $this->theme = APP::get_namespace_id() == 'admin' ? false : true; }