Esempio n. 1
0
File: C.php Progetto: studio-v/nano
 /**
  * @return string
  * @param string $controller
  * @param string $action
  */
 protected function render($controller = null, $action = null)
 {
     if (null === $controller) {
         $controller = $this->dispatcher()->controller();
     }
     if (null === $action) {
         $action = $this->template ? $this->template : $this->dispatcher()->action();
     }
     $this->markRendered();
     if ($this->layout) {
         return Nano_Render::layout($this, $controller, $action);
     } else {
         return Nano_Render::view($this, $controller, $action);
     }
 }