这两天学习了鸟哥的yaf框架,这里贴点学习资料和试水截图,需要的根据资料去细看吧。
1.download the yaf code from github: https://github.com/denglitong/yaf.git
2.install as the yaf manual guide: http://www.laruence.com/manual/ http://php.net/manual/zh/book.yaf.php
3.add extension=yaf.so in php.ini in linux
4.copy the php_yaf.dll in ext directory of PHP and add extension=php_yaf.dll in windows
5.restart your web server
一个体会就是,用扩展写的框架和其他用PHP写的框架相比有点看不见框架的感觉,但相当于已内化到语言当中。虽然下载了php-yaf-doc在编辑器中可以函数补全,但因为是用扩展开发的,函数源代码看不到,所以我也只是在学习手册中了解了一些基本的常用用法,需要时再来学习了。
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号