On Jan 25, 2008 8:43 AM, Geo <[EMAIL PROTECTED]> wrote:
>
> It works fine if i put the Model name into the $form->text like so:
>
> $form->text('Model.test') ... however i am not using a database table
> for this model and would prefer not to change all the $form->text in
> if possible

First of all, not all models have to be backed by a database.
Secondly, the Cake convention is to name the fields in a form in the
Model.field_name format.

As with anything in Cake, if you go against the conventions you
usually end up having to do a lot more work.

Hope that helps.

-- 
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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