Hi, 
I had the same problem and I solved renaming my model classed with the Model_ 
prefix.
So if you have a model called 'Pages' you need to rename it in Model_Pages. 
Just only the class name, not the file name.

So you will edit your code to get instance

$myPagesModel = new Model_Pages;

Maybe you will encounter another problem loading rowClasses ( if you use them 
), if this happen you must edit a core file, 
Zend/Loader.php, loadClass method, change "class_exists($class, false)"  with 
"class_exists($class)"

Hope this help

Sergio Rinaudo



> Date: Sat, 9 May 2009 07:37:40 -0700
> From: [email protected]
> To: [email protected]
> Subject: [fw-general] Bug with latest Version? Autoloading does not work
> 
> 
> i have the latest trunk version 15449. and i noticed that 
> 
> in my bootstrap even with 
> 
> $labRsxLoader->addResourceType('form', 'forms/', 'Form')
>              ->addResourceType('validator', 'validators/', 'Validator')
>              ->addResourceType('filter', 'filters/', 'Filter')
>              ->addResourceType('model', 'models/', 'Model');
> 
> my models are still not found... and i noticed it because my folder for
> models is forms and my class is Form. 
> -- 
> View this message in context: 
> http://www.nabble.com/Bug-with-latest-Version--Autoloading-does-not-work-tp23461145p23461145.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
> 

_________________________________________________________________
Resta in contatto con gli amici, comunica con Messenger!
http://messenger.it/cominciaAcomunicare.aspx

Reply via email to