helpers are available in views and directly by $helper
in your case: $validform (not the lower case 1st letter)
On 16 mar, 14:27, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> i wrote my own helper and try to use it in an ajax function. but then
> appears an error:
>
> Undefined property: UsersController::$Validform
>
> My Helper File: validform.php
> Class Name : ValidformHelper
>
> I include the helper with:
>
> var $helpers = array('Html', 'Javascript', 'Ajax', 'Validform',
> 'Session');
>
> and i use the helper like that example:
>
> if($this->Validform->isValidEmail($this->data['User']['email']))
> {
>
> }
>
> Is there an problem with Ajax ?
>
> Thx for Help
>
> Oli
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---