_settings = $settings; $this->_auth = $auth; if($this->_auth->isLogin()) { $this->_user = $user; $this->_acl = $acl; } $this->_router = $router; $this->_lang = $lang; $this->setTemplateDir(ROOTDIR . DS . APP . '/templates/SmartAdmin/'); $this->setCompileDir(ROOTDIR . DS . APP . '/Caches/templates_c/'); $this->setConfigDir(ROOTDIR . DS . APP . '/Caches/configs/'); $this->setCacheDir(ROOTDIR . DS . APP . '/Caches/cache/'); $this->assign('path', ROOTDIR . DS . APP); $this->assign('auth', $this->_auth); $this->assign('lang', $this->_lang); $this->assign('settings', $this->_settings); if($this->_auth->isLogin()) { $this->assign('user', $this->_user); $this->assign('acl', $this->_acl); } } }