コード例 #1
0
 public function initialize()
 {
     parent::initialize();
     if (parent::isLogin()) {
         // do login action
         //            $this->response->redirect('/');
     }
 }
コード例 #2
0
 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');
 }
コード例 #3
0
 public function initialize()
 {
     parent::initialize();
     $this->tag->setTitle($_POST['search'] . ' 搜索结果');
     parent::initTitle();
 }
コード例 #4
0
 public function initialize()
 {
     parent::initialize();
 }