Hi,
i read gwoo's tutorial: 
http://bakery.cakephp.org/articles/view/creating-reusable-elements-with-requestaction

I'd like to do this same in my app. Please take a look at my code:
http://bin.cakephp.org/view/1816839910

It works fine. But now i need to make data pagination. I try add to
view paginator options:
$paginator->options(array('url' => array('controller' => 'posts')));

But i get error - var $paginate not found. Should I add this helper to
app_controller helpers array? Isn't it load automatically?

Ok, when i add it to array, it seems to work. Anfortunatelly
doesn't :/ Inserting below piece of code:
<?php echo $paginator->prev('<< '.__('previous', true), array(), null,
array('class'=>'disabled'));?>
 |      <?php echo $paginator->numbers();?>
        <?php echo $paginator->next(__('next', true).' >>', array(), null,
array('class'=>'disabled'));?>

Makes error:
<< previous | Notice (8): Undefined index:  pageCount [CORE/cake/libs/
view/helpers/paginator.php, line 451]
Notice (8): Undefined index:  pageCount [CORE/cake/libs/view/helpers/
paginator.php, line 451]
next >>
Do you know what i do wrong?



--~--~---------~--~----~------------~-------~--~----~
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