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; }
public function __construct() { $this->db = RlxLoader::LoadClass('RlxDatabase'); }
<?php $news = RlxLoader::LoadClass('news'); var_dump($news->ShowAll());