简介
- 开发web应用的PHP框架
- 5.2.1以上PHP版本
- 安装参考:http://php.net/manual/zh/yaf.setup.php
- 了解php.ini中对yaf的相关设置
教程
常量
- 了解预定义常量,比如:YAF_VERSION
- 目录结构
- conf
- application
- controllers
- views
- modules
- models
- library
- index.php
- 代码教学
- 控制器中
class IndexController extends Yaf_Controller_Abstract { /* default action */ public function indexAction() { $this->_view->word = "hello world"; $this->getView()->word = "hello world"; } }
- 视图显示
$word