Skip to content

Commit

Permalink
added a dockblock to Controller::set()
Browse files Browse the repository at this point in the history
  • Loading branch information
alkemann committed Oct 30, 2009
1 parent 36f06fa commit 8cb1063
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/lithium/action/Controller.php
Expand Up @@ -164,6 +164,12 @@ public function __invoke($request, $dispatchParams, $options = array()) {
return $this->_filter(__METHOD__, compact('dispatchParams', 'request', 'options'), $filter);
}

/**
* This method is used to from pass along any data from the controller to the view and layout
*
* @param array $data sets of <variable name> => <variable value> to pass to view layer
* @return void
*/
public function set($data = array()) {
$this->_render['data'] += (array)$data;
}
Expand Down

0 comments on commit 8cb1063

Please sign in to comment.