예제 #1
0
파일: Router.php 프로젝트: rodacom/jelix
 /**
  * @param  string|object $config filename of the ini file to configure the framework, or the config object itself
  *              this parameter is optional if App::loadConfig has been already called
  * @param  boolean $enableErrorHandler enable the error handler of jelix.
  *                 keep it to true, unless you have something to debug
  *                 and really have to use the default handler or an other handler
  */
 function __construct($configFile = '', $enableErrorHandler = true)
 {
     if ($configFile) {
         App::loadConfig($configFile, $enableErrorHandler);
     }
     $this->_loadPlugins();
 }
예제 #2
0
파일: Router.php 프로젝트: mdouchin/jelix
 /**
  * @param  string|object $config filename of the ini file to configure the framework, or the config object itself
  *              this parameter is optional if App::loadConfig has been already called
  * @param  boolean $enableErrorHandler enable the error handler of jelix.
  *                 keep it to true, unless you have something to debug
  *                 and really have to use the default handler or an other handler
  */
 function __construct($configFile = '', $enableErrorHandler = true)
 {
     if ($configFile) {
         App::loadConfig($configFile, $enableErrorHandler);
     }
     $mapperConfig = new \Jelix\Routing\UrlMapping\MapperConfig(App::config()->urlengine);
     $this->urlActionMapper = new \Jelix\Routing\UrlMapping\UrlActionMapper($mapperConfig);
     $this->_loadPlugins();
 }
예제 #3
0
파일: jApp.php 프로젝트: rodacom/jelix
 public static function loadConfig($configFile, $enableErrorHandler = true)
 {
     \Jelix\Core\App::loadConfig($configFile, $enableErrorHandler);
 }