Exemple #1
0
 public static function createCApp()
 {
     define('__CUU__', str_replace(array('//', '\\'), array('/', '/'), dirname(__FILE__)));
     define('__CORE__', __CUU__ . '/Core');
     define('__EXT__', __CUU__ . '/Ext');
     define('__LIB__', __CUU__ . '/Lib');
     define('__VIEW__', __CUU__ . '/View');
     //set_include_path(get_include_path().PATH_SEPARATOR.__CORE__);
     spl_autoload_register(array('CApp', 'autoLoad'));
     return self::$_app = CFactory::SFactory('CApp');
 }