Create your own helper, inherited from HtmlHelper. Then override the
dateTimeOptionTag on you helper. Let me know if any of this needs
explanation.

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Rodrigo Tassinari
Sent: 28 Nopember 2006 19:52
To: Cake PHP
Subject: Replacing Html Helper


Hi all,

I'm using the Html Helper to generate some form fields in my
applications. However, I need to make some changes to the
dateTimeOptionTag() function to cater to my specifc needs.

What is the best way to do this?

At first I tried to copy html.php from cake/libs/view/helpers to
app/views/helpers and change the file in this directory. This seems
reasonable to me, but when I try to render any page using the Html
helper now it freezes Apache.

I'm using Cake 1.10, Apache2 and MySQL5 running on Ubuntu 6.06 and
6.10.

Thanks,
Rodrigo.




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