Monday, August 30, 2010

[Beginner] Fixing form ID

Hello people,

I'm new at this cake thing ; facing difficulties with FormHelper.

Problem is : I use the helper in the layout, to output a login form
(mail + password). Its html id changes all the time (depending upon
the URL : its id is wheter LoginAddForm or LoginIndexForm or
LoginEditForm, etc.). Thus, I can't get the POSTed inputs in my
controller (since I don't know which id to use : $this-
>data>['loginID????']['password'])

What to do ? Any way of fixing the ID ? (the API did not help :().

Thanks,
Alexis.

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 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: