Example #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;
 }
Example #2
0
 public function __construct()
 {
     $this->db = RlxLoader::LoadClass('RlxDatabase');
 }
Example #3
0
<?php

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