/** * Costructor. * * @access public * @since 1.0.0-alpha * @version 1.0.0-alpha */ public function __construct() { // initialize theme Theme::initFrontend(); // parent consturctor parent::__construct(); }
/** * Constructor. * * @access public * @since 1.0.0-alpha * @version 1.0.0-alpha */ public function __construct() { // call parent constructor parent::__construct(); // set default response status $this->sStatus = static::STATUS_SUCCESS; // Create log about Controller initalization Log::insert('Ajax controller class initialized!'); }
/** * Costructor. * * @access public * @since 1.0.0-alpha * @version 1.0.0-alpha */ public function __construct() { // initialize theme Theme::initFrontend(); // parent consturctor parent::__construct(); // add CSS & JS files for all subpages $this->addCssByTheme('/packages/bootstrap/css/bootstrap.css', '_common'); $this->addJsByTheme('/js/jquery-2.1.3.min.js', '_common'); $this->addJsByTheme('/js/jquery-ui.min.js', '_common'); $this->addJsByTheme('/packages/bootstrap/js/bootstrap.min.js', '_common'); // add first breadcrumb $frontPageURL = Route::factory('home')->url(); $this->addBreadCrumb(__('Front page'), $frontPageURL); }
/** * Constructor. * * @access public * @since 1.0.0-alpha * @version 1.0.0-alpha */ public function __construct() { // initialize theme Theme::initBackend(); parent::__construct(); if ($this->sModel !== NULL) { $this->setModel(new $this->sModel()); } if (!User::isLogged() || !\UserPermissions::hasPerm(static::PERM_ADMIN_ACCESS)) { Route::factory('home')->redirectTo(); } // // // add main breadcrumbs and title // $this->alterBreadcrumbsTitleMain(); // // // add CSS and JavaScript files // $this->addCss('/themes/_common/packages/bootstrap/css/bootstrap.min.css'); // $this->addCss('/themes/_common/packages/bootstrap/css/bootstrap-sticky-footer-navbar.css'); // $this->addJs('/themes/_common/js/jquery-2.1.3.min.js'); // $this->addJs('/themes/_common/js/jquery-ui.min.js'); // $this->addJs('/themes/_common/packages/bootstrap/js/bootstrap.min.js'); // $this->addJs('/themes/_common/js/global/framework.js'); // // $this->addCssByTheme('/css/backend.css'); // $this->addJsByTheme('/js/jquery.mjs.nestedSortable.js'); // $this->addJsByTheme('/js/backend.js'); }