Exemplo n.º 1
0
 /**
  * @see \Ableron\Core\Controller\AbstractController::init()
  */
 protected function init()
 {
     parent::init();
     // set template
     $this->setTemplateFile('/Core/Pages/Backend/Templates/ResourceNotFoundPage.tpl');
     // set HTTP response status code
     Application::getResponseHandler()->getResponse()->setStatusCode(404);
 }
Exemplo n.º 2
0
 /**
  * @see \Ableron\Core\Controller\Page\PageInterface::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     Application::getTemplateHandler()->getVariables()->setAll(array('documentTitle' => Application::getI18nHandler()->getTranslator()->translate('sysInfo.systemInfo.title'), 'ableronCoreVersion' => Application::getVersion(), 'ableronInstallationTime' => StringUtil::formatDateTime(Application::getInstallationTime()), 'databaseManagementSystem' => SystemInformation::getDatabaseManagementSystem(), 'operatingSystem' => SystemInformation::getOperatingSystem(), 'phpVersion' => SystemInformation::getPhpVersion(), 'phpServerApi' => SystemInformation::getPhpServerApi(), 'webServer' => SystemInformation::getWebServer(), 'zendEngineVersion' => SystemInformation::getZendEngineVersion()));
 }
Exemplo n.º 3
0
 /**
  * @see \Ableron\Core\Controller\Page\PageInterface::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     Application::getTemplateHandler()->getVariables()->setAll(array('documentTitle' => Application::getI18nHandler()->getTranslator()->translate('core.backend.login.title'), 'loginForm' => $this->loginForm, 'username' => $this->username));
 }
Exemplo n.º 4
0
 /**
  * @see \Ableron\Core\Controller\Page\PageInterface::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     Application::getTemplateHandler()->getVariables()->setAll(array('documentTitle' => Application::getI18nHandler()->getTranslator()->translate('core.backend.index.title')));
 }
Exemplo n.º 5
0
 /**
  * @see \Ableron\Core\Controller\Page\PageInterface::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     Application::getTemplateHandler()->getVariables()->setAll(array('documentTitle' => Application::getI18nHandler()->getTranslator()->translate('sysInfo.phpInfo.title'), 'phpInfo' => $this->getPhpInfo()));
 }