Monday, August 30, 2010

Re: [Beginner] Fixing form ID

You can't rely on the id. What are you trying to achieve? What does your code look like?

Jeremy Burns
Class Outfit

jeremyburns@classoutfit.com
http://www.classoutfit.com

On 30 Aug 2010, at 22:16, Alexis Laporte wrote:

> 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

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: