No, you're seeing correct behaviour.
the data prefix means the posted data gets into $this->data, for handy
access.
The Account prefix is your model, so that you can easily get the
fields for a particular model, and pass them to save, i.e:
$this->Account->save($this->data['Account']);
Embrace the Cake convention, it'll let you use all the nice features.
On Jan 2, 12:18 am, lirc201 <[EMAIL PROTECTED]> wrote:
> I'm having some trouble with my login form. In my thtml file:
>
> <?php echo $html->input('Account/email',array("id" => "email",
> "class"=>"input"));?>
>
> but when I view source:
>
> <input name="data[Account][email]" id="email" class="input" ...
>
> I was assuming cake would fill in name=email to correspond to the
> field name in my model.
>
> Thanks,
> Brian
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---