視圖 view

2018-01-12 16:07 更新

視圖

視圖操作有一下幾種

  1. get 獲取get
  2. post 獲取post
  3. model 調(diào)用model
  4. assign 分配數(shù)據(jù)
  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(); //中間區(qū) $this->tmp->assign("data",$data); $this->dp("admin/index"); }



}

以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號