protected function initView() { if ($this->viewActive) { return true; } $this->viewActive = true; // lets init views if ($this->loadViews) { $_PATH = APPLICATION_PATH . DS . 'views' . DS; $view_object = null; try { if (file_exists($_PATH . "_init.view.php")) { require_once $_PATH . "_init.view.php"; if (class_exists('View_Initialize')) { $view_object = new View_Initialize(); if (!is_subclass_of($view_object, 'System_View')) { throw new Exception(); } } else { throw new Exception(); } } else { throw new Exception(); } } catch (Exception $e) { if (class_exists('System_View')) { $view_object = new System_View(); } else { throw new Exception('Fatal Error'); } } $view_object->attach($this); $this->view =& $view_object; } }
/** * DotBoost Technologies Inc. * DotKernel Application Framework * * @category DotKernel * @package Admin * @copyright Copyright (c) 2009-2015 DotBoost Technologies Inc. (http://www.dotboost.com) * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * @version $Id: SystemController.php 973 2015-05-27 13:41:10Z gabi $ */ /** * System Controller * @author DotKernel Team <*****@*****.**> */ $systemView = new System_View($tpl); $systemModel = new System(); // switch based on the action, NO default action here $pageTitle = $option->pageTitle->action->{$registry->requestAction}; switch ($registry->requestAction) { case 'dashboard': $mysqlVersion = $systemModel->getMysqlVersion(); $geoIpVersion = $systemModel->getGeoIpVersion(); $warnings = $systemModel->getWarnings(array()); $apcInfo = $systemModel->getAPCInfo(); // Ini Values $iniValues = $systemModel->getIniValuesWithCorrection(); $cacheInfo = Dot_Cache::getCacheInfo(); $systemView->dashboard('dashboard', $mysqlVersion, $apcInfo, $geoIpVersion, $warnings, $iniValues, $cacheInfo); break; case 'settings':