On Tue, Feb 17, 2009 at 11:58 PM, brian <[email protected]> wrote:
>
> public function front_page()
> {
>        $posts = $this->paginate('Post');
>        $paginator = ClassRegistry::getObject('view')->loaded['paginator'];
>        $paginator->params = $this->params;
>        return compact('posts', 'paginator');
> }

I just clued in that I don't even need to pass $paginator back to the
view, just $posts. In fact, I can do this:

public function front_page()
{
        $posts = $this->paginate('Post');
        ClassRegistry::getObject('view')->loaded['paginator']->params = 
$this->params;
        return $posts;
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to