Re: Pagination through requestAction

2007-04-14 Thread sickrandir
It worked!! Adding: $paginator- >options(array('url'=>array('controller'=>'controllerName'))); made the $paginator->prev and $paginator->next link correct and the pagination now works like a charm. Thank you for your patience and incredible help! sickrandir On Apr 13, 6:55 pm, "gwoo" <[EMAIL PR

Re: Pagination through requestAction

2007-04-13 Thread gwoo
when in doubt, you can always pass the controller. try setting $paginator- >options(array('url'=>array('controller'=>'controllerName'))): There was a ticket on this before and I tested it. Try to search https://trac.cakephp.org and see if the previously reported problem is similar to yours. --

Re: Pagination through requestAction

2007-04-13 Thread sickrandir
Your article on the bakery is great. The only thing I miss is controlling the pagination through the paginator helper. Is there any way to use the functions $paginator->prev and $paginator->next with the requestAction approach? I tried but the links generated alway refers to the controller associa

Re: Pagination through requestAction

2007-04-12 Thread gwoo
Hi sickrandir You question prompted me to post an article on the bakery on creating reusable elements. Have a look. http://bakery.cakephp.org/articles/view/342 Hope it helps. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: Pagination through requestAction

2007-04-12 Thread sickrandir
ok, I pasted here the relevant code: http://bin.cakephp.org/view/1405839666 Each pagination works if used alone. I have one layout for the post controller that has echo $content_for_layout in the right column while in the left column I put requestAction ("/tagposts/ index",array("return"=>true)

Re: Pagination through requestAction

2007-04-12 Thread gwoo
you need to show some code. I still am not sure what your question is exactly. Paste some stuff in http://bin.cakephp.org and provide a link back. bake on. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP"

Re: Pagination through requestAction

2007-04-12 Thread sickrandir
Hi gwoo, thanx for the reply. I'm using the latest alpha (4798) and followed this post by nate (http://cake.insertdesignhere.com/posts/view/16) for the pagination. On Apr 11, 8:02 pm, "gwoo" <[EMAIL PROTECTED]> wrote: > what revision are you using? --~--~-~--~~~---~

Re: Pagination through requestAction

2007-04-11 Thread gwoo
what revision are you using? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROT

Pagination through requestAction

2007-04-11 Thread sickrandir
Hi, I'm successfully using pagination with cake 1.2 . Now for the home page of the site I need to paginate content from two different models. I have two controllers and the home page is a view for an action of one of them. The other one is queryed using the requestAction function. The problem is