Example #1
0
 /**
  *
  * @param type $args
  */
 public function __construct($args)
 {
     //
     parent::__construct($args);
     //
     $this->index = $args['index'];
     //
     $this->indexPath = dirname($this->index);
     //
     $this->_htaccess = $this->indexPath . '/.htaccess';
     //
     if (!file_exists($this->_htaccess) || !filesize($this->_htaccess)) {
         Runtime::error('empty or corrupted ".htaccess"' . ' run <a href="setup.php">setup.php</a>', 99120);
     }
     //
     $this->request = Framework::request($args['php_self'], $args['request_uri'], $this->config->default->code, $this->config->default->action);
     //
     $this->loadCommonModules();
     //
     $this->loadLocaleFromSessionVar();
 }
Example #2
0
 /**
  *
  * 
  */
 public static function &getApp()
 {
     //
     return App::getInstance();
 }