On Wed, Oct 7, 2009 at 9:22 AM, Brendan Paull <brendan.pa...@gmail.com> wrote: > > 3 questions for the group regarding Models > > 1. Does CakePHP even read the contents of the model files. I run my > code, then I completely clear the contents of the file or put garbage > data in for values such as $useTable and there is absolutely no > effect. If CAKE is not going to read the model file, what is the point > in having ? (I tried put test member variables in and reading them out > later, didn't work) > > 2. Related to the above, but putting $hasMany in has no effect (as > mentioned above CakePHP does not even seem to be reading the model > files) so the only way that I can set things up is to actually bind it > in the Controller. This doesn't really seem right to me.... > > 3. Perhaps again related to the above, but I want to write my own > functions inside the model, I used to be able to in previous versions > of Cake, but doesn't seem to be able to any more. Cake appears to > automatically run as a query. Could be related to Cake not even > reading the model files in the first place..... >
Delete the contents of the app/tmp/cache/models/ directory. If you set debug > 0, Cake will also re-read the model and database table schema for it. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---