Home  >  Q&A  >  body text

报错Class 'think\Facade\Request' not found

<?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


2176 days ago2623

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2018-11-27 21:31:55

    Isn’t it clear about such a prompt?

    Go to think/facade/ and check if there is such a request class

    reply
    1
  • Cancelreply