On Nov 29, 10:16 pm, loki_mdog <[EMAIL PROTECTED]> wrote:
> It's not that I am against it and I will use this line if I have to but it
> doesn't make sense to me to include it in the view.
>
> I am defining everything else about the pagination in the controller
> (including my filtering logic)...seems to make sense to me that I should be
> able to retain that filtering logic at the controller level and not the
> view.
>
> If it can't be done, then it can't be done...just curious as I am having a
> hard time finding examples that work this way.
>
> Many thanks!
The line in the view tells the paginator helper how to generate the
links, that isn't related to controller logic.
Although it isn't directly related, I published some custom bake
templates recently (http://cakeforge.org/frs/?
group_id=152&release_id=361) and if you look at how the admin_index
method and views are defined, you should find that it isn't that
complex to write a simple filter function. Actually, iirc the Generic
File Uploads admin index works in the same way.
Have a look, you should find it´s a lot less complex and specific than
your code currently looks.
hth,
AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---