Skip to content

Commit c09b128

Browse files
committed
Replaced deprecated paginate() through Paginator->paginate()
https://github.com/cakephp/cakephp/blob/master/lib/Cake/Controller/Controller.php#L1071
1 parent 1eca5a0 commit c09b128

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Console/Templates/bootstrap/actions/controller_actions.ctp

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
public function <?php echo $admin ?>index() {
77
$this-><?php echo $currentModelName ?>->recursive = 0;
8-
$this->set('<?php echo $pluralName ?>', $this->paginate());
8+
$this->set('<?php echo $pluralName ?>', $this->Paginator->paginate());
99
}
1010

1111
/**
@@ -176,4 +176,4 @@
176176
$this->flash(__('%s was not deleted', __('<?php echo ucfirst(strtolower($singularHumanName)); ?>')), array('action' => 'index'));
177177
<?php endif; ?>
178178
$this->redirect(array('action' => 'index'));
179-
}
179+
}

0 commit comments

Comments
 (0)