namespace Admin\Controller;
use Think\Controller;
class LoginController extends Controller {
private $userObj;
public function __construct(){
if($this->isLogin()){
}else{
}
}
重写了__construct()父类中的construct实例化了view对象,子类又重写了construct
namespace Admin\Controller;
use Think\Controller;
class LoginController extends Controller {
private $userObj;
public function __construct(){
if($this->isLogin()){
}else{
}
}
重写了__construct()父类中的construct实例化了view对象,子类又重写了construct
thinkphp5资源路由访问404报错解决办法:把public重定向
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M