Yaf will merge the application configurations and user configurations
automatically. The application configurations have prefix "yaf." or
"application.". If both "yaf." and "application." exist, "application."
will be accepted preferentially.
[yaf]
yaf.directory = APPLICATION_PATH "/application"
yaf.dispatcher.catchException = 0
[product : yaf]
; user configuration list here
Tip
When the configuration grows large, Yaf_Config_Ini,
which parses the ini file on every request, becomes noticeable overhead.
» Yaconf parses all ini
files under one directory only once at PHP startup and keeps the parsed
values in shared memory. Set
yaconf.directory to the folder holding the
configuration, and pass the returned array to
Yaf_Application::__construct():
<?php
// in php.ini: yaconf.directory = /path/to/app/conf
$app = new Yaf_Application(Yaconf::get("application"));
?>
A file that contains [section] headers is exposed as
one entry per section (inheritance, e.g.
[product : yaf], already resolved). Retrieve a single
section with a dot,
Yaconf::get("application.product"), and pass that
array instead; its keys are exactly the merged entries of that section.
Used to remove a fixed prefix of request uri in route process.
Take a example, comes a request with request uri
"/prefix/controller/action". if you set application.baseUri to
"/prefix", then only "/controller/action" will take as the PATH_INFO in
route process.