namespace admins\controller; use think\Controller; use think\Request; class Account extends Controller{ public function __construct() { parent::__construct(); } function login(){ return $this->fetch(); } }
It’s a very common code. The problem is that the Controller can’t be found. I really don’t understand. Is it clearly possible in the video?
Have you solved it?
Please take a look at the capitalization of the first letter of Controller. The first namespace is not uniform in capitalization.
Then check if there is a file admins.php in the entry file.
namespace app\admins\controller, it should be like this, the namespace is missing an app path