コード例 #1
0
ファイル: LayoutManager.php プロジェクト: GruppoMeta/Movio
 function __construct($fileName = '', $rootPath = '')
 {
     $this->fileName = org_glizy_Paths::getRealPath('APPLICATION_TEMPLATE', $this->pathPrefix . $fileName);
     $this->rootPath = org_glizy_Paths::get('APPLICATION_TEMPLATE');
     $application =& org_glizy_ObjectValues::get('org.glizy', 'application');
     $this->currentMenu = $application->getCurrentMenu();
     $this->language = $application->getLanguage();
     if (!file_exists($this->fileName)) {
         org_glizy_Exception::show(500, "Template non trovato: " . $this->rootPath . $this->pathPrefix . $fileName, "", "");
         exit;
     }
 }
コード例 #2
0
ファイル: core.inc.php プロジェクト: GruppoMeta/Movio
 public function onShutdownFunction()
 {
     if (!self::$isRegistred) {
         return;
     }
     $error = error_get_last();
     if ($error['type'] == 1) {
         if (org_glizy_Config::get('ERROR_DUMP') !== '') {
             org_glizy_Exception::error_dump($error['type'], $error['message'], $error['file'], $error['line']);
         }
         org_glizy_Exception::show($error['type'], $error['message'], $error['file'], $error['line']);
     }
 }