public function execute()
 {
     // устанавливаем лайаут фронтенда
     $this->setLayout(new guestbook2FrontendLayout());
     $this->setThemeTemplate('signup.html');
     // запускаем выполнение родительского метода
     parent::execute();
 }
Beispiel #2
0
 public function execute()
 {
     $this->setLayout(new siteFrontendLayout());
     $this->setThemeTemplate('signup.html');
     try {
         parent::execute();
     } catch (waException $e) {
         if ($e->getCode() == 404) {
             $this->view->assign('error_code', $e->getCode());
             $this->view->assign('error_message', $e->getMessage());
             $this->setThemeTemplate('error.html');
         } else {
             throw $e;
         }
     }
 }