I have to Form & Ajax helper in the controller

On Dec 11, 6:39 pm, cricket <[email protected]> wrote:
> On Sat, Dec 11, 2010 at 6:29 PM, Rishi <[email protected]> wrote:
> > Hi
>
> > I am trying to send a ajax call to an action when ever there is a
> > change in selection.
>
> > <?php echo $form->create(''); ?>
>
> >                <?php echo $form->input('selected',array('label'=>'Select
> > Category','id'=>'selected','type'=>'select','options'=>$select));?>
>
> >                <?php echo $ajax->observeField('selected',
> >                                
> > array('with'=>'Form.Element.serialize(\'selected\')','url' =>
> > 'display','update'=>'codes',
> >                                
> > 'complete'=>"Effect.Appear('selected');",'onChange'=>true));?>
>
> >                <?php echo $form->end(); ?>
>
> > When I check the consle.
>
> > Form is not defined
> >http://localhost/index.php/codes/code
> > Line 46
>
> You need to have 'Form' in your $helpers array for this controller (or
> AppController).

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