예제 #1
0
 /**
  * Renders the given content within the layout
  *
  * @param string $content
  * @return string
  */
 public function renderLayout($content)
 {
     $layout = new View();
     $layout->setScriptPath($this->auth->getLayoutScriptPath());
     $layout->assign(array('content' => $content, 'title' => $this->auth->getTitle(), 'view' => $this->view));
     return $layout->render($this->auth->getLayoutScript());
 }