protected function __construct() { $dir = PROJECT_PATH . '/template'; $this->view = new View($dir); // 设置html属性 $this->setTitle(); $this->setMeta(); // 获取登陆用户 $this->loginUserInfo = UserCommonInterface::getLoginUserInfo(); $this->view->assign(array('loginUserInfo' => $this->loginUserInfo)); }