How to configure the yaf framework in php
In this article Xiaobian for you to introduce in detail "how to configure the yaf framework in php", the content is detailed, the steps are clear, and the details are handled properly. I hope that this article "how to configure the yaf framework in php" can help you solve your doubts.
1. Configure the running environment
When configuring php to support yaf, you can set a parameter yaf.environ: set the local development to develop, the test environment to test, and the production environment to product, such as:
[yaf] extension=yaf.soyaf.use_namespace=1yaf.environ=develop
By setting up the running environment, the environment parameters can be obtained through ini_get ('yaf.environ') in the project, and then the configuration of the corresponding section can be obtained.
2. Php constant definition can be introduced into configuration.
Yaf must be configured, which is actually a directory setting.
Ini code
What language is yaf.directory=APP_PATHapplication.directory=APP_PATHphp php, a nested acronym, is the abbreviation of English Hypertext preprocessing language (PHP:Hypertext Preprocessor). PHP is a kind of HTML embedded language. PHP is somewhat similar to Microsoft's ASP. It is a scripting language that embeds HTML documents on the server. The style of the language is similar to C language, and now it is widely used by many website programmers.
Read here, this "how to configure the yaf framework in php" article has been introduced, want to master the knowledge of this article also need to practice and use to understand, if you want to know more about the article, welcome to follow the industry information channel.