<?php
namespace app\index\controller;
use app\common\controller\Base;
use app\common\model\Article;
use app\common\model\Cate;
use think\Facade\Request;
$cateId = Request::param('cate_id');
// dump($cateId);die;
if(isset($cateId)){
$res = Cate::get($cateId);
$this -> view -> assign('cateName',$res->name);
}
报错:Class 'think\Facade\Request' not found
Class 'think\Facade\Request' not found
Class 'think\Facade\Request' not found
Class 'think\Facade\Request' not found
天蓬老师 2018-11-27 21:31:551楼
这样的提示,难道还不清楚吗?
到think/facade/下找一下是否有这个请求类
赞 +1添加回复