安裝tp5之後,想修改首頁內容,加入視圖html文件。
1、在application\index\目錄下,新建文件夾view,view下創建文件夾index
2、在index下創建html文件index
3、application\index\controller\Index.php中修改,使用fetch
4、這時再訪問,就【頁面錯誤】
原來使用fetch,就得繼承Controller
安裝tp5之後,想修改首頁內容,加入視圖html文件。
1、在application\index\目錄下,新建文件夾view,view下創建文件夾index
2、在index下創建html文件index
3、application\index\controller\Index.php中修改,使用fetch
4、這時再訪問,就【頁面錯誤】
原來使用fetch,就得繼承Controller
public function importData(){ //先執行文件上傳 $file = $this->request->file('files');//獲取表單上傳文件 if(em
tp5 whereOr $model->where($where)->whereOr($data)->find(); whereOr 或者屬性 這就讓我們實現了多條件查詢
<?php /* *單例模式 *工廠模式 *註冊樹模式 */ //單例模式 class Site { //屬性 public $siteName; //本類的靜態實例 protected stati