public function __construct($engine) { parent::__construct($engine); if (!$this->_auth->hasIdentity()) { $this->_engine->addHttpHeader("Location: /" . $this->_router->getUrl('cms', 'auth')); exit; } $this->_cms = IndexModel::Instance(); $this->_gallery = GalleryModel::Instance(); $this->_user = UsersModel::Instance(); $this->_head->addStyleFile('jquery.ui.all.css', 'screen', true, '/css/jquery-ui/'); // JqueryUI CSS $this->_head->addStyleToImport('index', 'cms', 'base.css'); $this->_head->addScriptFile('jquery-ui-' . $this->_config->jqueryui . '.min.js', true, '/scripts/jquery-ui/'); // JqueryUI JS $this->_head->addScriptFile('base.js', true, '/scripts/cms/'); // JqueryUI JS $this->_head->addScriptFile('jquery.uniform.min.js', true, '/scripts/cms/'); // JqueryUI JS $this->_head->addScriptFile('index.js', true, '/scripts/cms/'); // JqueryUI JS $this->_head->addScriptFile('jquery.ui.datepicker-pl.js', true, '/scripts/'); $this->_head->addScriptFile('ckeditor.js', true, '/scripts/cms/ckeditor/'); $this->_view->sidebar = $this->_view->render('modules/' . $this->_engine->getModuleName() . '/cms/templates/sidebar.tpl'); }
public function __construct($engine) { parent::__construct($engine); if (!$this->_auth->hasIdentity()) { $this->_engine->addHttpHeader("Location: " . $this->_router->getUrl('cms', 'auth')); exit; } $this->_user = UsersModel::Instance(); $this->_cms = IndexModel::Instance(); $this->_head->addStyleFile('jquery.ui.all.css', 'screen', true, '/css/jquery-ui/'); // JqueryUI CSS $this->_head->addStyleToImport('index', 'cms', 'base.css'); $this->_head->addScriptFile('jquery-ui-' . $this->_config->jqueryui . '.min.js', true, '/scripts/jquery-ui/'); // JqueryUI JS $this->_head->addScriptFile('base.js', true, '/scripts/cms/'); // JqueryUI JS $this->_head->addScriptFile('jquery.uniform.min.js', true, '/scripts/cms/'); // JqueryUI JS $this->_head->addScriptFile('user.js', true, '/scripts/cms/'); // JqueryUI JS }