getLoginUser() ? true : false; } /** * 获取登录用户 * * @time at 2018年11月15日 * @return mixed */ protected function getLoginUser() { return Session::get('user'); } /** * fetch 重写 * * @time at 2018年11月15日 * @param string $template * @param array $vars * @param array $config * @return mixed */ protected function fetch($template = '', $vars = [], $config = []) { $vars = array_merge($this->vars, $vars); return $this->view->fetch($template, $vars, $config); } /** * Set Template Vars * * @time at 2018年11月12日 * @param $name * @param $value * @return void */ public function __set($name, $value) { // TODO: Implement __set() method. $this->vars[$name] = $value; } }