<?php ////////////////////////////////// ///Autoloading of the libraries/// ////////////////////////////////// require_once '../app/libraries/Class_Auto_Load.php'; //Loading of PWEL classes new Class_Auto_Load('../app/libraries/PWEL'); new Class_Auto_Load('../app/libraries/PWEL/Interfaces'); new Class_Auto_Load('../app/libraries/PWEL/Components'); new Class_Auto_Load('../app/libraries/PWEL/Plugins'); //Loading of other Classes(optional) new Class_Auto_Load('../app/models/html'); new Class_Auto_Load('../app/libraries/Collection'); ////////////////////////////////// /// Initializing Framewok /// ////////////////////////////////// $pwel = new PWEL(); $pwel->configRouting(array('start' => 'loader', 'error' => 'error', 'autosearch' => true, 'namespace' => 'docs', 'namespacerange' => array('docs', 'layout', 'about', 'classes', 'collection'))); $pwel->initialize(new PWEL_COMPONENT_ROUTE('param:getStarted')); ////////////////////////////////// /// DEBUG-Mode/Helper /// ////////////////////////////////// //PWEL_ANALYZER::viewInfo();
/** * Loads the config file * */ static function getConfig() { if (file_exists(PWEL_ROUTING::$relative_path . 'app/config.ini')) { self::$config = parse_ini_file(PWEL_ROUTING::$relative_path . 'app/config.ini', true); } }
<?php ////////////////////////////////// ///Autoloading of the libraries/// ////////////////////////////////// require_once '../app/libraries/Class_Auto_Load.php'; //Loading of PWEL classes new Class_Auto_Load('../app/libraries/PWEL'); new Class_Auto_Load('../app/libraries/PWEL/Interfaces'); new Class_Auto_Load('../app/libraries/PWEL/Components'); new Class_Auto_Load('../app/libraries/PWEL/Plugins'); //Loading of other Classes(optional) new Class_Auto_Load('../app/models/html'); new Class_Auto_Load('../app/libraries/Collection'); ////////////////////////////////// /// Initializing Framewok /// ////////////////////////////////// $pwel = new PWEL(); $pwel->configRouting(array('start' => 'test', 'error' => 'error', 'namespace' => 'examples')); $pwel->initialize(new PWEL_COMPONENT_ROUTE('class:/method:/param:')); ////////////////////////////////// /// DEBUG-Mode/Helper /// ////////////////////////////////// #PWEL_ANALYZER::viewInfo();
<?php ////////////////////////////////// ///Autoloading of the libraries/// ////////////////////////////////// require_once '../app/libraries/Class_Auto_Load.php'; //Loading of PWEL classes new Class_Auto_Load('../app/libraries/PWEL'); new Class_Auto_Load('../app/libraries/PWEL/Interfaces'); new Class_Auto_Load('../app/libraries/PWEL/Components'); new Class_Auto_Load('../app/libraries/PWEL/Plugins'); //Loading of other Classes(optional) new Class_Auto_Load('../app/models/html'); new Class_Auto_Load('../app/libraries/Collection'); ////////////////////////////////// /// Initializing Framewok /// ////////////////////////////////// $pwel = new PWEL(); $pwel->configRouting(array('start' => 'start', 'error' => 'error', 'autosearch' => true, 'namespace' => 'html', 'namespacerange' => array('html', 'layout'))); $pwel->initialize(new PWEL_COMPONENT_ROUTE('lang:eng/class:/method:/param:')); ////////////////////////////////// /// DEBUG-Mode/Helper /// ////////////////////////////////// #PWEL_ANALYZER::viewInfo();