且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

thinkphp $this->display()报错

更新时间:2022-09-16 13:28:05

  1.  namespace Admin\Controller;

  2.  use Think\Controller;

  3.  class LoginController extends Controller {

  4.     private $userObj;

  5.     public function __construct(){

  6.         if($this->isLogin()){

  7.         }else{

  8.         }

  9.     }




重写了__construct()父类中的construct实例化了view对象,子类又重写了construct

本文转自  陈小龙哈   51CTO博客,原文链接:http://blog.51cto.com/chenxiaolong/1731673