Skip to content
Permalink
Browse files

Helpers are lazy loaded.

  • Loading branch information...
dereuromark committed Sep 21, 2014
1 parent b88a0d8 commit 0faf6ab77345685378d8629d1ed7a6ff57c835d3
Showing with 0 additions and 6 deletions.
  1. +0 −6 src/Controller/Controller.php
@@ -676,12 +676,6 @@ public function paginate($object = null) {
}
$this->loadComponent('Paginator');
if (
!in_array('Paginator', $this->helpers) &&
!array_key_exists('Paginator', $this->helpers)
) {
$this->helpers[] = 'Paginator';
}
if (empty($table)) {
throw new \RuntimeException('Unable to locate an object compatible with paginate.');
}

0 comments on commit 0faf6ab

Please sign in to comment.
You can’t perform that action at this time.