标签:display
namespace Admin\Controller;
use Think\Controller;
class LoginController extends Controller {
private $userObj;
public function __construct(){
if($this->isLogin()){
}else{
}
}
重写了__construct()父类中的construct实例化了view对象,子类又重写了construct
标签:display
原文地址:http://chenxiaolong.blog.51cto.com/8786841/1731673