Re: Load models without model files

2011-06-15 Thread Dr. Loboto
Make stub model with $useTable = false, load it, then call $this- >setSource('table_name') on it. Or list all "static" models in AppModel, overwrite __construct() there and set $useTable to false there for any not listed name. On 16 июн, 02:49, "qua...@gmail.com" wrote: > Hi, > > I have tables t

Load models without model files

2011-06-15 Thread qua...@gmail.com
Hi, I have tables that are created on the fly and I'd like to access it thru Model. Since those tables are dynamically created, I don't have the model .php files for them. The tables are created conforming to Cake's naming convention. I tried to use loadModel() to load them but Cake still complain