Example #1
0
 /**
  * renderPage
  *
  * Renders the whole page template.
  *
  * @access protected
  * @param boolean $ajax
  * @return void
  * @todo Implement response object
  */
 protected function renderPage($ajax = false)
 {
     if ($ajax === false) {
         $this->template->set('rootUrl', $this->rootUrl);
         $this->template->set('content', $this->view->render());
         $this->template->set('js', $this->view->renderJs());
         echo $this->template->render();
     } else {
         $this->template = $this->view;
         $this->template->set('js', $this->view->renderJs());
         return $this->template->render();
     }
 }