There are 3 tables in my database. Table1 has a one-to-many relationship to 
Table2. Table2 has a one-to-many relationship to Table3. I would like to 
write a web service API that allows the user to add rows to all 3 tables at 
the same time. The problem with CakePHP is that it only allows a controller 
to access its own corresponding model's data. How can a controller access 
other models? What is the best practices for CakePHP for a single 
controller to access other models? For my case in particular, which table 
should I use? Will Table1 be a good start since it is the parent to the 
other tables?

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to