index.php
<?php
namespace app\index\controller;
use app\index\controller\base;
class Index extends Base
{
public function index()
{
return $this -> view -> fetch();
}
}
##base.php
<?php
namespace app\ index\controller;
use think\controller;
class Base extends Controller
{
}
Please give me some guidance. I followed the step-by-step instructions in the video. The file codes are exactly the same. However, after I refreshed the page, the webpage prompted SYSTEM ERROR. I was struggling and couldn’t learn anymore. Please give me some guidance.
Also, there must be a corresponding template
First turn on the debugging mode of the entry file, it will tell you that there is a problem in the above place