Exemplo n.º 1
0
 /**
  * Run this controller. This method is marked final,
  * and it is a template-method (calls $this->doRun() and $this->render())
  */
 final function run()
 {
     if (is_array($this->postRequestHandlers) && count($this->postRequestHandlers) && Naf::handlePost($this->postRequestHandlers)) {
         return;
     }
     $this->doRun();
     $this->render($this->response->getView());
 }
Exemplo n.º 2
0
 function __construct(Naf_Response $response)
 {
     $this->_response = $response;
     $this->_vars = $this->_response->export();
 }