Hello, I have the follow relationship between two models (Company and Branch):
Company has many Branch(es) What I want is that all actions of the Branches controller will automatically set company_id to the company set by the url. So the following url would return all branches for the company with the id 1 http://www.example.com/companies/1/branches I've looked at thechaw's source code and it has a similar functionality for Projects -> Tickets It sets project_id to $this->Project->id inside the Tickets controller. What I don't know is how it initializes the Project model to point to the correct project. I'd like to know how this is done so that I could apply it to my application. Thank you. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en