Put it in a helper, then use the helper in each view.
On Jan 12, 10:51 am, Henrik Gemal <[email protected]> wrote:
> I have a custom html escape function that I like to be able to use in
> two views.
> What's the best way to share function between views?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---