Permalink
Browse files

`Controller::render()` returns a value now.

  • Loading branch information...
1 parent 3d683c2 commit 137ee07b89cc8ac66f4ba4c5ebba22b9625822a2 @nateabele nateabele committed Mar 15, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 action/Controller.php
View
@@ -220,7 +220,7 @@ public function set($data = array()) {
*
* The options specified here are merged with the values in the `Controller::$_render`
* property. You may refer to it for other options accepted by this method.
- * @return void
+ * @return object Returns the `Response` object associated with this `Controller` instance.
*/
public function render(array $options = array()) {
$media = $this->_classes['media'];
@@ -257,6 +257,8 @@ public function render(array $options = array()) {
}
$data = $this->_render['data'];
$media::render($this->response, $data, $options + array('request' => $this->request));
+
+ return $this->response;
}
/**

0 comments on commit 137ee07

Please sign in to comment.