I don't know where your problems stems, but I know why you are seeing that 
issue. ClassRegistry::init looks first if a model with that name is already 
loaded, if it is, then it returns the already created instance. If it is not 
there already, it will do an App::import() internally to look for the model 
class in a file, if found creates the new instances, stores it and returns 
it. *BUT *if no model class/file can be found with that name, it will create 
an instance of AppModel and set the table value to the name of the model you 
wanted to instantiate.

So, basically your problem is that you are getting an instance of the 
generic AppModel, for whatever reason cake is not able to find the 
associated class. I recommend checking the class name in the files, 
verifying the file name is correct, following the conventions, casing, etc.

Good luck with that.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to