/** * 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()); }
function __construct(Naf_Response $response) { $this->_response = $response; $this->_vars = $this->_response->export(); }