yes, maybe the 1.2 is different. The problem is that I've 13
controllers and the same for the views...I would try to not repeat
anytime it.


On 8 Gen, 14:11, Aevum Decessus <[EMAIL PROTECTED]> wrote:
> Interesting, I got it to work just fine. The biggest difference I can
> see in code, is you put Pagination in the components array, while I
> called it directly, which is how it is done in this tutorial (http://
> bakery.cakephp.org/articles/view/basic-pagination-overview-3).
> Here's my code btw.
>
> Controller:
> var $paginate = array('limit' => 10, 'page' => 1);
> function index()//sends contents of the updates database table to the
> view
>         {
>                 $this->set('updates', $this->paginate('Update'));
>         }
>
> and in the View:
> <h1>Updates</h1>
> Showing Page <?php echo $paginator->counter(); ?>
> <ul>
> <?php foreach ($updates as $update): ?>
> <li><?php echo $update['Update']['created']; ?>:
> <?php echo $update['Update']['update']; ?> -
> <?php echo $update['Update']['username']; ?>
> </li>
> <?php endforeach; ?>
> </ul>
> <?php echo $paginator->prev(); ?>
>   <?php echo $paginator->numbers(); ?>
> <?php echo $paginator->next(); ?>
>
> I'm using CakePHP 1.2, so it might be different if you are using 1.1
>
> On Jan 8, 5:48 am, mcphisto <[EMAIL PROTECTED]> wrote:
>
> > Well I've just seen that it works if in the controller i have
>
> > var $components = array('Pagination');
>
> > but it doesn't if i include the requesthandler.... why?
>
> > var $components = array('RequestHandler','Pagination');
>
> > On 8 Gen, 12:45, mcphisto <[EMAIL PROTECTED]> wrote:
>
> > > Why the pagination helper works with IE7 and not with firefox?
> > > Did someone of you experienced this?
>
> > > Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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