public function display($clear_assign = true)
 {
     if (waSystemConfig::isDebug()) {
         return parent::display($clear_assign);
     }
     try {
         return parent::display($clear_assign);
     } catch (SmartyCompilerException $e) {
         $message = preg_replace('/(on\\sline\\s[0-9]+).*$/i', '$1', $e->getMessage());
         $message = str_replace($this->getConfig()->getRootPath(), '', $message);
         throw new SmartyCompilerException($message, $e->getCode());
     }
 }
 public function display($clear_assign = false)
 {
     $this->view->getHelper()->globals($this->getRequest()->param());
     return parent::display($clear_assign);
 }
 public function display($clear_assign = true)
 {
     /**
      * @event frontend_nav
      * @return array[string]string $return[%plugin_id%] html output for navigation section
      */
     $this->view->assign('frontend_nav', wa()->event('frontend_nav'));
     // set globals
     $params = waRequest::param();
     foreach ($params as $k => $v) {
         if (in_array($k, array('url', 'module', 'action', 'meta_keywords', 'meta_description', 'private', 'url_type', 'type_id', 'payment_id', 'shipping_id', 'currency', 'stock_id'))) {
             unset($params[$k]);
         }
     }
     $this->view->getHelper()->globals($params);
     try {
         return parent::display(false);
     } catch (waException $e) {
         if ($e->getCode() == 404) {
             $url = $this->getConfig()->getRequestUrl(false, true);
             if (substr($url, -1) !== '/' && strpos(substr($url, -5), '.') === false) {
                 wa()->getResponse()->redirect($url . '/', 301);
             }
         }
         /**
          * @event frontend_error
          */
         wa()->event('frontend_error', $e);
         $this->view->assign('error_message', $e->getMessage());
         $code = $e->getCode();
         $this->view->assign('error_code', $code);
         $this->getResponse()->setStatus($code ? $code : 500);
         $this->setThemeTemplate('error.html');
         return $this->view->fetch($this->getTemplate());
     }
 }
 public function display($clear_assign = true)
 {
     $this->view->assign('type', $this->type);
     $this->view->assign('templates_path', 'templates/actions/dialog/');
     return parent::display($clear_assign);
 }
 public function display($clear_assign = true)
 {
     return parent::display(false);
 }
 public function display($clear_assign = true)
 {
     $this->setLayout(new developerBackendLayout());
     return parent::display($clear_assign);
 }