its
App::Import('Helper', 'Html');
etc

On 30 Mai, 02:15, luca capra <[email protected]> wrote:
> Hi all,
>
> Using 1.3 stable I'm trying to override some function in a custom helper
> overriding a core helper (form+html)
> An example:
>
> dojo_html.php
>
> App::Import('Html');
> class DojoHtmlHelper extends HtmlHelper {
>   var $tags = array(
>     'form' => '<form dojoType="dijit.form.Form" %s>',
>     'input' => '<span name="%s" %s></span>',
>     ...
>    );
>
> }
>
> dojo_form.php
>
> App::Import('Form');
> class DojoFormHelper extends FormHelper {
>
>     var $helpers = array('Html'=>'DojoHtml','Js');
>
>     ...some overridden functions...
>
> }
>
> but seems not to work.
> I've found 
> thishttp://cakeqs.org/eng/questions/view/custom_functions_arguments_in_fo...
> and this (old) 
> posthttp://cakebaker.42dh.com/2008/10/18/dont-abuse-the-apphelper-to-exte...
> but still can't get it...
>
> my aim is to call $form->input with customized $tags from html helper
> and get the dojo-related code.
> Can somebody help me?
>
> 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 [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