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