public function initialize()
 {
     parent::initialize();
     if (parent::isLogin()) {
         // do login action
         //            $this->response->redirect('/');
     }
 }
 public function initialize()
 {
     parent::initialize();
     if (!parent::isLogin()) {
         // do login action
         $this->response->redirect('account/login');
     }
     $this->view->setVar('menuList', [['link' => '/member', 'name' => '个人中心'], ['link' => '/member/mark', 'name' => 'mark'], ['link' => '/member/history', 'name' => '足迹']]);
     $this->view->setTemplateBefore('memberCommon');
     //        $this->view->setTemplateAfter('common');
 }
 public function initialize()
 {
     parent::initialize();
     $this->tag->setTitle($_POST['search'] . ' 搜索结果');
     parent::initTitle();
 }
Esempio n. 4
0
 public function initialize()
 {
     parent::initialize();
 }