Hello,

  I've been following what seems to be the standard in creating forms,
but it's pointing to the wrong controller name.

eg:
  I have a 'SubReferrals' controller backed by the SubReferral model
that looks for a 'Sub_Referrals' table.  (apparently also had to name
it "sub_referral.php")  So in the form I use $form->create
('SubReferral', array('action'=>'edit'), but it points to
'sub_referral/edit' for the controller/func call.   (hard-coding via
the 'url' option works)

  Is the best bet to not specify a model name so it defaults to the
current controller?  I haven't tried this yet, but wont this also
affect the data array when the form is posted?

  In some situations I have more control over the table names and
such, but they can't always be as simple as 'Posts, Comments, etc..'.

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

Reply via email to