Esempio n. 1
0
 public function initialize()
 {
     $this->template = template::getInstance();
     if ($this->ajax) {
         $this->content = ajax::getInstance();
     } else {
         $this->content = index::getInstance();
     }
     $this->content->initialize();
 }
Esempio n. 2
0
 /**
  * This widget is shown on index so show index.
  */
 public function render()
 {
     // Display index page.
     index::getInstance()->render();
 }
 /**
  * This widget is shown on index, so show index.
  */
 public function render()
 {
     index::getInstance()->render();
 }
Esempio n. 4
0
<?php

header('HTTP/1.1 200 OK');
ob_start();
try {
    try {
        require_once 'inc/bootstrap.php';
    } catch (Exception $e) {
        ob_clean();
        // Remember error for displaying it later in a more prominent place.
        define('ERROR', TRUE);
        define('ERROR_MESSAGE', $e->getMessage());
        index::getInstance()->render();
    }
} catch (Exception $e) {
    die('Unknown error');
}