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?
秋香姐家的小书童2018-06-25 11:19:44
Please take a look at the capitalization of the first letter of Controller. The first namespace is not uniform in capitalization.
无忌哥哥2018-06-25 09:12:42
namespace app\admins\controller, it should be like this, the namespace is missing an app path