Hi guys!

I'm working in a project showing many paginators in different pages. I've
made some projecs already on CakePHP with many paginators; but now I want to
make better code and I was thinking in unify all the paginator
configurations.

My first idea was to check in beforeRender if the paginator helper was
loaded for that controller, and modify it's properties from there. I don't
want to define in each page the paginator options (separator = ' ', escape =
false, previous text, next text and so on).

Do you know if is there any way to do that?

I thougt in a file called paginatorOptions.php where add some checks as
if(isset($paginator)){} ; and then include that file in every layout (ajax,
default, etc) to configure the paginator globally. But I'm not sure if a
requestAction uses the empty layout, for example.

What do you think?

Thanks in advance.


n.



Nicolás Andrade
*[email protected]*
 Blog <http://www.nicoandra.com.ar> | CV <http://nandrade.awardspace.com> |
Flickr <http://www.flickr.com/photos/aanm> |
Del.icio.us<http://del.icio.us/nis_>|
LastFM <http://www.lastfm.es/user/nis_>

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

Reply via email to