zen of coding

Changing model's table from the controller

For one reason, or another you might wish to change your Model’s table on the fly… It would seem that it should be quite easy to do with: $this->Company->useTable = ‘another_company_table’; …but it’s not going to work… Instead, in your controller, use: $this->Company->table = ‘another_company_table’; I haven’t checked to see[…]

Read More »
%d bloggers like this: