yaf build the project
- yaf download and install address https://github.com/laruence/yaf/releases
Build the project
- Necessarily need to execute the statement in the php version installed yaf environment
sudo /usr/local/php7.2/bin/php yaf_cg yaf_model
Find the project directory generated
zb@zb-computer:/yaf-3.0.7/tools/cg/output$ ls
yaf_model
如果遇到错误
yaf在命令行模式下出现PHP Fatal error: Class 'Yaf_Application' not found的解决办法
注意是不是在你安装yaf的php 环境跑该项目的.