Пример #1
0
 /**
  * Render main content of the view.
  * 
  * @param OutputBuffer $out
  * 
  * @throws \RuntimeException If no parent view is available.
  */
 protected function renderMain(OutputBuffer $out)
 {
     if ($this->getParent() === NULL) {
         throw new \RuntimeException('Failed to render main part');
     }
     $this->parent->renderMain($out);
 }