Saturday, April 2, 2011

Re: Help in Pagination

i forgot:
in my routes.php
Router::connect(
'/blog/*',
array('controller' => 'blogs', 'action' => 'pseudo')
);

in the controllers i have:
var $paginate = array(
'Article' => array(
'limit' => 5,
'order' => array(
'Article.id' => 'desc'
)
));
in the views i have:

$paginator->options(array('url' => $this->passedArgs));
echo $paginator->prev(' Précedent - ', null, null,
array('class' => 'disabled'));
echo $paginator->numbers();
echo $paginator->next(' - Suivant ', null, null,
array('class' => 'disabled'));

On 2 avr, 21:12, blogSystem <belgacem0...@gmail.com> wrote:
> you can see this linkshttp://kyle77680.awsblog.net/?cat=165
> in bottom i have the pagination of the posts list (articles in
> frensh )
> if you try to get the second page for exemple you will be return to
> the default page of the blog
>
> On 2 avr, 19:51, "Krissy Masters" <naked.cake.ba...@gmail.com> wrote:
>
> > What does your code look like?
> > Every controller or just 1 page set? Need to provide some details / code to
> > the problem not "just its not working" we can't see what your doing so your
> > going to have to help us a bit there :)
>
> > -----Original Message-----
> > From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
>
> > Of Ryan Schmidt
> > Sent: Saturday, April 02, 2011 4:59 PM
> > To: cake-php@googlegroups.com
> > Subject: Re: Help in Pagination
>
> > On Apr 2, 2011, at 14:25, Krissy Masters wrote:
>
> > > Could be the problem "i'm using cackephp 0.2.9".????
>
> > I'm going to guess that's a typo for cakephp 1.2.9.
>
> > --
> > Our newest site for the community: CakePHP Video Tutorialshttp://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: