controllerName = $controllerName; $this->view = $view; $this->data = $data; $this->includeStyles(); $this->includeScripts(); $this->wrapperStart(); $this->includeMenu(); $this->includeHeader(); $this->containerStart(); $this->includeView(); $this->containerEnd(); $this->menuEnd(); $this->wrapperEnd(); } private function includeStyles() { Router::addStyle(false, ACYC_CSS.'style.min.css?time='.time()); // Add the controller style if exists if (file_exists(ACYC_MEDIA.'css'.DS.'controllers'.DS.strtolower($this->controllerName).'.min.css')) { Router::addStyle(false, ACYC_CSS.'controllers/'.strtolower($this->controllerName).'.min.css?time='.time()); } // Add the layout style if exists if (file_exists(ACYC_MEDIA.'css'.DS.'layouts'.DS.strtolower($this->controllerName).DS.strtolower($this->view).'.min.css')) { Router::addStyle(false, ACYC_CSS.'layouts/'.strtolower($this->controllerName).'/'.strtolower($this->view).'.min.css?time='.time()); } } private function includeScripts() { $this->includeLanguagesJavascript(); $this->loadAssets(); Router::addScript(false, ACYC_JS.'index.min.js?time='.time()); Router::addScript(false, ACYC_JS.'services/pagination.min.js?time='.time()); Router::addScript(false, ACYC_JS.'services/status.min.js?time='.time()); Router::addScript(false, ACYC_JS.'services/tooltip.min.js?time='.time()); Router::addScript(false, ACYC_JS.'services/notice.min.js?time='.time()); Router::addScript(false, ACYC_JS.'services/configuration.min.js?time='.time()); Router::addScript(false, ACYC_JS.'services/sort.min.js?time='.time()); if (Miscellaneous::isLeftMenuNecessary()) { Router::addScript(false, ACYC_JS.'services/cookie.min.js?time='.time()); Router::addScript(false, ACYC_JS.'services/joomlaMenu.min.js?time='.time()); } if (strtolower($this->controllerName) == 'dashboard') { Router::addScript(false, ACYC_JS.'libraries/apexchart.min.js'); } if (strtolower($this->controllerName) == 'configuration') { Router::addScript(false, ACYC_JS.'libraries/select2.min.js'); Router::addStyle(false, ACYC_CSS.'libraries/select2.min.css'); } // Add the controller script if exists if (file_exists(ACYC_MEDIA.'js'.DS.'controllers'.DS.strtolower($this->controllerName).'.min.js')) { Router::addScript(false, ACYC_JS.'controllers/'.strtolower($this->controllerName).'.min.js?time='.time()); } // Add the layout script if exists if (file_exists(ACYC_MEDIA.'js'.DS.'layouts'.DS.strtolower($this->controllerName).DS.strtolower($this->view).'.min.js')) { Router::addScript(false, ACYC_JS.'layouts/'.strtolower($this->controllerName).'/'.strtolower($this->view).'.min.js?time='.time()); } } private function includeMenu() { if (Miscellaneous::isLeftMenuNecessary()) echo Miscellaneous::getLeftMenu(strtolower($this->controllerName)).'