Friday, October 31, 2008

Re: Fatal error Call to undefined method Controller Html()

Helpers are not meant to be used in a controller, they are used in
your views/layouts/elements.

Could it be that you also have a component called Captcha? If you do,
that's the reason why $this->Captcha->show(); doesn't crash, but $this-
>Html('title' , ''); does.

On Oct 31, 1:15 pm, Malcolm Krugger <chennaiprogram...@gmail.com>
wrote:
> I have this
>
> var $helpers = array('Html', 'Form', 'Captcha');
>
> and now when I use
>
> $this->Captcha->show();  IT works perfectly..No issues there
>
> but when I use something like
>
> $this->Html('title' , '');
>
> The error given is
>
> Fatal error: Call to undefined method UsersController::Html()
>
> So what could be causing this error ?
>
> Any help would be greatly appreciated
--~--~---------~--~----~------------~-------~--~----~
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: