Example #1
0
 public function init()
 {
     // регистрация автолоадера
     joosAutoloader::init();
     // сначала инициализация базовой конфигурации
     joosConfig::init();
     // отправка заголовков
     joosDocument::header();
     return $this;
 }
Example #2
0
 public static function init()
 {
     $app_autoload_files = (require_once JPATH_APP_CONFIG . '/autoload.php');
     self::$static_files = array_merge($app_autoload_files, self::$static_files);
     spl_autoload_register(array(new self(), 'autoload'));
 }