Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 137ee07b89cc8ac66f4ba4c5ebba22b9625822a2 1 parent 3d683c2
@nateabele nateabele authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 action/Controller.php
View
4 action/Controller.php
@@ -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;
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.