Hi,
I have a controller that provides a list of documents using the
requestAction from a view.
For example in my view for another controller:
$documents = $this->requestAction( '/documents/getDocuments' );
foreach( $documents as $doc )
{
echo $this->renderElement( 'description', $doc );
}
Is it possible to use pagination with this approach? I changed my
getDocuments to call $this->paginate('Document'), and my view renders
the list of documents.
When I tried to add:
echo $paginator->prev('« Previous ', null, null, array('class' =>
'disabled'));
echo $paginator->next(' Next »', null, null, array('class' =>
'disabled'));
echo $paginator->counter();
I get a few undefined variable errors from the paginator helper. What
do I need to do in my getDocuments action to get these variables into
the view?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---