Friday, December 3, 2010

Override or not

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate