Pass an object to view that has the methods you need. Ketan Patel wrote: > I am baffled right now with a simple question. I want some specific > functions to be available in the controllers as well as the views. > What's the best way to do this? I don't want to duplicate same code in > components as well as the helpers. Is there a straight forward way to > do this? > > I am thinking of adding to Vendor and then use it, but still not sure. > If you know please reply. > >
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
