I refer you to http://book.cakephp.org/

http://book.cakephp.org/view/102/Including-other-Helpers

On Jul 7, 9:48 pm, cronet <[email protected]> wrote:
> Hi,
>
> i want to use the FormHelper in my own helper.
>
> simple helper example:
>
> function formTest($model) {
>         App::import('Helper', 'Html');
>         App::import('Helper', 'Form');
>         $form = new FormHelper();
>         echo $form->create($model);
>         echo $form->inputs();
>         echo $form->end();
>
> }
>
> It ends in the following error message:
>
> Undefined property:  FormHelper::$Html [CORE/cake/libs/view/helpers/
> form.php, line 1033]
> Trying to get property of non-object [CORE/cake/libs/view/helpers/
> form.php, line 1033]
> Undefined property:  FormHelper::$Html [CORE/cake/libs/view/helpers/
> form.php, line 248]
> Trying to get property of non-object [CORE/cake/libs/view/helpers/
> form.php, line 248]
>
> It seems that i can't use the form helper in my example.
>
> Anyone tried this ?
>
> Regards
--~--~---------~--~----~------------~-------~--~----~
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