예제 #1
0
 public static function initialize($libs = 'library', $apps = 'application')
 {
     self::$libPath = $libs;
     self::$appsPath = $apps;
     if (self::$autoloaded === false) {
         spl_autoload_register(array(__CLASS__, 'LoadLibs'));
         self::$autoloaded = true;
     }
     RlxLoader::LoadClass('RlxRoute');
     RlxLoader::LoadClass('RlxError');
     RlxLoader::LoadClass('RlxLanguage');
     #RlxConfig::LoadConfig();
     self::setCharset(RlxConfig::conf('charset'));
     self::setTimezone(RlxConfig::conf('time_zone'));
     self::$initialized = true;
 }
예제 #2
0
 public function __construct()
 {
     $this->db = RlxLoader::LoadClass('RlxDatabase');
 }
예제 #3
0
파일: news.php 프로젝트: relax4o/RlxWork
<?php

$news = RlxLoader::LoadClass('news');
var_dump($news->ShowAll());