Home>Article>PHP Framework> Yaconf installation and easy use

Yaconf installation and easy use

咔咔
咔咔 Original
2020-10-09 14:52:43 1953browse

The previous article talked about understanding Yaconf. If you see this article, you can check it out in the column. To learn something, you must first know what it can do, and then learn it, or blindly There is no point in studying.

4. Install Yaconf on the window

Due to advertising, there is no download here For the address, you can directly search for Yaconf and download the first one.

After entering, click on the DLL at the back and select the corresponding version

How to choose the applicable version here, please see below

How to judge which version is suitable For yourself, just follow the places I circled to download. Be sure to download the corresponding version here, otherwise it will not work.

Then place this file in the PHP extension directory. This directory is based on the PHP version you are using. The one used here is PHP7.3Then modify the configuration file, The directory location of the configuration file must be created, and it can be placed there

extension=php_yaconf.dll

[yaconf]
yaconf.directory="D:\phpstudy_pro\WWW\yaconf"
yaconf.check_delay=60

Restart the environment and check it and it will be ok.

One thing to note here is that when copying, there will inevitably be some spaces and other messy things. Remember to delete them, otherwise you will know what unspeakable weakness is.

5. Use Yaconf on the window

At this time, create it directly in the Yaconf directory An ini file, and write the following content

The controller reads directly

The printed result is also the expected value

If the configuration file is changed, just restart ngixn directly

Another interface provided by Yaconf is\Yaconf::has

The above is the use of Yaconf on window, and it is relatively simple to use.

One thing to note here is that after modifying the Yaconf configuration file, we need to restart the web server.

That’s all for the configuration of Yaconf. I didn’t do in-depth research on yaconf, just to avoid being troubled when learning the framework.

Keep learning and blogging , Persistence in sharing is the belief that Kaka has always adhered to since its beginning. I hope that Kaka’s articles on the huge Internet can bring you a little bit of help. I’m Kaka, see you next time.

The above is the detailed content of Yaconf installation and easy use. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn