mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
parent
ceb5c9c6f1
commit
6a39b35df6
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue