As far as I understand your problem, you have a "scaffolding"
problem.

Scaffolding should be used for testing the models and DB structure. If
you need that level of custom adaption it's time to quit scaffolding
and supply your own VIEWS and CONTROLLERS.

If you create your own view you can use the same form to supply data
for the 3 models.
As of "how do you write a VIEW":

1) VIEW = HTML + PHP
2) As with everything else, take a look on the manual:
http://manual.cakephp.org/chapter/views

If you need to share the form code between the edit and add page place
it in an element.

Good luck!





On Feb 18, 1:54 pm, "varunkrish" <[EMAIL PROTECTED]> wrote:
> I have a Model called Product
>
> Product belongsTo a Model Maker
>
> Product hasOne Model Built (Dimensions and Color)
> Product hasOne Model Review
>
> Now how do i make it possible to add a a record to all 3 tables using
> a single form ?
>
> How do i get about writing a view ?
>
> Scaffolding is now showing the contents of all 3 the tables together
> in the products/view/$id
>
> How do i have a single page edit and add form ?
>
> Please help.
>
> i have been breakign my head for a long time


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

Reply via email to