Form(Html)Helper allows to define many parameters to inputs and all
other form/html elements, so maybe there is no need to write own
helpers.
Anyway regardless of this things 'hacking' core of Cake is
unacceptable and the key is inheriting, overriding and writing own
helpers.
On 3 Gru, 11:33, luca capra <luca.ca...@gmail.com> wrote:
> Hi all
>
> I'm developing a cakephp+dojo web app. Everything work fine.
> Really fine! I'm loving cakephp
>
> But, there is a "but".
>
> Due to Dojo (or better I) require some non standard html tags, I had to
> rewrite partially the Form and Html helper, that now I call DojoHtml and
> DojoForm overriding the core classes
> This permit to call
>
> $DojoForm->input, still letting cake magic happens and add some Dojo
> related stuff (widget config, dojo.require)
>
> The big issue is that on each cake core upgrade, I need to diff by hand
> the code to find changes (eg Form::input() vs DojoForm::input() )
> This is probably a problem due my bad php knowledge, but let me ask..
>
> Is there a way to implement these core helper, without fork the files or
> override the whole methods I need? (In Drupal I would call them "hooks")
>
> Any hints??
>
> Thanks in advance.
> Luca
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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment