Example #1
0
 /**
  * Renders the page
  *
  * @returns a view file
  */
 public function render()
 {
     if (!$this->loaded()) {
         throw new Kohanut_Exception("Page render failed because page was not loaded.", array(), 404);
     }
     Kohanut::$page = $this;
     // Build the view
     return new View('kohanut/xhtml', array('layoutcode' => $this->layout->render()));
 }