public function display() { $this->execute(); $this->view->assign($this->blocks); waSystem::getInstance()->getResponse()->sendHeaders(); $this->view->cache(false); if ($this->view->autoescape() && $this->view instanceof waSmarty3View) { $this->view->smarty->loadFilter('pre', 'content_nofilter'); } $this->view->display($this->getTemplate()); }
public function display() { $this->execute(); $this->view->assign($this->blocks); if (wa()->getEnv() == 'frontend' && waRequest::param('theme_mobile') && waRequest::param('theme') != waRequest::param('theme_mobile')) { wa()->getResponse()->addHeader('Vary', 'User-Agent'); } wa()->getResponse()->sendHeaders(); $this->view->cache(false); if ($this->view->autoescape() && $this->view instanceof waSmarty3View) { $this->view->smarty->loadFilter('pre', 'content_nofilter'); } $this->view->display($this->getTemplate()); }