视图 view
视图
视图操作有一下几种
- get 获取get
- post 获取post
- model 调用model
- assign 分配数据
- dp 模版
demo
class coreViewAdmin extends coreFrameworkView { function construct() { parent::construct(); } function index() { $get = $this->GVar->fget; $post = $this->GVar->fpost; $data = $this->model->modelName(); //中间区 $this->tmp->assign("data",$data); $this->dp("admin/index"); }
}