So I just encountered a situation where I'd like to use a helper in my
controller even though this seems to break with Cake's MVC design.
Googling the topic turned up a thread in this group in which
loadHelper() is proposed as a means of doing just that, but it still
seems to be discouraged.

What I'm wondering is, if this is discouraged, then why does the Time
Helper have day/daysAsSql(). I cannot fathom a common scenario where
you would need to display a date as:

($field_name >= '2008-01-21 00:00:00') AND ($field_name <= '2008-01-21
23:59:59')

in a view to justify the inclusion of those two functions in a helper
rather than a component.

Is using a helper in a view really so taboo?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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