Adding additional data for pagination, and fixing docblock formatting

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3398 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2006-08-12 13:06:21 +00:00
parent ceb5c9c6f1
commit 6a39b35df6

View file

@ -417,7 +417,8 @@ class Controller extends Object{
* Saves a variable to use inside a template.
*
* @param mixed $one A string or an array of data.
* @param mixed $two Value in case $one is a string (which then works as the key). Unused if $one is an associative array, otherwise serves as the values to $one's keys.
* @param mixed $two Value in case $one is a string (which then works as the key).
* Unused if $one is an associative array, otherwise serves as the values to $one's keys.
* @return unknown
*/
function set($one, $two = null) {
@ -1005,6 +1006,7 @@ class Controller extends Object{
$results = $object->findAll($conditions, $fields, $order, $limit, $page, $recursive);
$this->params['paging'][$object->name] = $options;
$this->params['paging'][$object->name]['current'] = count($results);
$this->params['paging'][$object->name]['count'] = $object->findCount($conditions);
return $results;