视图 view

2018-01-12 16:07 更新

视图

视图操作有一下几种

  1. get 获取get
  2. post 获取post
  3. model 调用model
  4. assign 分配数据
  5. 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"); }



}

以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号