> I was hoping that Cake's scaffolding would allow me to
> accesshttp://servername/commercial_vendors/addand enter:
>
> - The shared vendor data, including an address
This is beyond the scope of scaffolding, as far as I am aware, as
Addresses are two models away from your CommercialVendors. You would
need to code/bake your views and add in extra fields for your address
using the following code:
echo $form->input('Address.streetaddress_1');
echo $form->input('Address.streetaddress_2');
echo $form->input('Address.city');
echo $form->input('Address.state_id');
echo $form->input('Address.zipcode');
You would also need to code/bake your controller and add in code to
save the Vendor and Address models.
> - The data specific to commercial vendors
This is working as it should by the sounds of it
> - Select (rather than type) the commercial vendor type
This should work within scaffolding, if it is not then the automagic
is failing to pick up a list of commercial_vendor_types for some
reason. Have you added any vendor types at
http://servername/commercial_vendor_types/add?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---