PHP Development Group Bird Govio developed PHP extension framework
Installation
Windows download Extension: https://pecl.php.net/package/yaf/2.2.9/windows
Depending on your computer system and PHP version number selection, NTS is thread insecure, TS is thread safe
Depending on phpinfo (), choose whether it is thread safe
Put the Php_yaf.dll extension in the Ext directory
Restart Apache
Use
New directory public, new file index.php portal file
<? phpdefine ("App_path", /* */ $appnew yaf_application (App_path. "/conf/application.ini"); $app->run ();
New directory conf, new file Application.ini
[Product]; support for directly writing defined constants in PHP application
New directory application/controllers, new file index.php
<? PHP class extends yaf_controller_abstract { publicfunction indexaction () {// Default action $this->getview ()->assign ("Content", "Hello Yaf");} }
New directory Views/index, new file index.phtml
Echo $content;? >
[PHP] Simple installation using the YAF framework