Ejemplo n.º 1
0
 public function renderPage(Am_Controller_Pages_Page $page)
 {
     $performer = $page->getPerformer($this);
     if ($performer instanceof Zend_Controller_Action) {
         $performer->run($this->_request, $this->_response);
     } else {
         $performer->run($this->getResponse());
     }
     if ($this->getResponse()->isRedirect() || $this->isAjax()) {
         return;
     }
     $content = $this->renderTabs($this->pageId) . $this->getResponse()->getBody();
     $this->getResponse()->clearBody();
     $this->view->title = $this->getActivePage()->getTitle();
     $this->view->layoutNoTitle = true;
     $this->view->content = $content;
     $this->view->display($this->layout);
 }
 public function renderPage(Am_Controller_Pages_Page $page)
 {
     $this->setActiveMenu($page->getId() == 'all' ? 'content' : 'content-' . $page->getId());
     return parent::renderPage($page);
 }