Helpers are supposed to be used from the view as they, oh well, help views
:)

You could create a component, something like TimeComponent, and do those SQL
there. You use the component on your controller, and the helper on your
views. Components are to controllers what helpers are to views.

-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!


-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de [EMAIL PROTECTED]
Enviado el: Jueves, 30 de Noviembre de 2006 11:35 a.m.
Para: Cake PHP
Asunto: Silly Question about TimeHelper


Is it possible to access/use a helper inside of a controller? The
TimeHelper has some useful sql related functions, like dayAsSql. It
seems odd that those methods would be in TimeHelper if you can only use
it inside a view.


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

Reply via email to