this is one downside of the current "helper" style for dates etc
the time helper needs to be manually included in the controller etc
(with dependencies inside the helper causing trouble sometimes)
so i agree with you that the situation is not perfect right now

i would like the following DRY approach to be used in future cake
versions:

a "lib" with generic stuff extended or used in components, helpers etc
this way you can use it inside a behavior as well
the helper will add html markup (extend the functionality for the
view)

if you already need it that way, why not going down that road?

cheers
mark


On 16 Feb., 17:48, Matthias <[email protected]> wrote:
> I built my own helper for converting dates, because I need to deal
> with german day names, and now I need the same helper in controllers,
> models and views. I like the concept of helpers, components etc, but
> how do I organize this "helper" so I don't need to repeat myself by
> creating a DateFormatHelper, a DateFormatComponent and a
> DateFormatBehaviour?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to