Beispiel #1
0
 public static function getInstance()
 {
     if (null === self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Beispiel #2
0
 protected function __construct()
 {
     $route = Hayate_Router::getInstance();
     $route->route();
     $this->routedUri = $route->routedPath();
     $this->uri = $route->path();
     $this->module = Hayate_Config::getInstance()->get('default_module', 'default');
     $this->modulesPath = MODPATH;
     $this->route();
     $this->setErrorReporter(Hayate_Error_Default::getInstance());
 }