search

Home  >  Q&A  >  body text

Please tell me when you want to reflect the template, I made a mistake. The c error is Fatal error: Class 'Think\Controller' not found in

<?php
namespace admin\Controller;
use Think\Controller;
class IndexController extends Controller {
   public function index(){
       $this->show('12345667',utf-8);
   }
}

蛋糕蛋糕2512 days ago2235

reply all(3)I'll reply

  • 晨光熹微

    晨光熹微2018-03-13 16:48:42

    It may be related to the code compiler you are using. I will report this error when I use HBuilder to read and modify the box on the right side, but it will display normally when browsing with a browser.



    reply
    1
  • lz泞

    lz泞2018-01-15 15:22:08

    What you wrote was for TP3.2, but now you are teaching for ThinkPHP5.0~

    reply
    0
  • 韦小宝

    韦小宝2018-01-15 08:58:15

    Is the controller written wrong?

    reply
    0
  • Cancelreply