/** * @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(); }
/** * @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(); }
public static function loadConfig($configFile, $enableErrorHandler = true) { \Jelix\Core\App::loadConfig($configFile, $enableErrorHandler); }