or infra -> Infra

The models directory is being used as the base for Application_Model_, but
all files and folder after that should match casing with the classname.

Be aware that Application_Model_Mapper_ uses models/mappers as a base dir.
It cost me an hour to figure that one out...

Vincent de Lau
 [email protected]

> -----Oorspronkelijk bericht-----
> Van: Paul [mailto:[email protected]]
> Verzonden: vrijdag 4 juni 2010 16:04
> Aan: [email protected]
> Onderwerp: Re: [fw-general] Unable to load under models from
> subdirectories
> 
> Shouldn't the class be (captial T)
> 
> Admin_Model_Infra_SomeThing.
> 
> On 6/3/2010 6:30 PM, Mike Fuller wrote:
> 
> 
>       Hi,
> 
>       Here's my situation
> 
>       I have files such as
> application/modules/admin/models/infra/SomeThing.php
> 
>       The class for SomeThing.php is Admin_Model_Infra_Something.
> 
>       I have an application/modules/Bootstrap.php file whose class is:
>       Admin_Bootstrap extends Zend_Application_Module_Bootstrap
> 
>       In my controller I'll have $s = new
> Admin_Model_Infra_Something();
> 
>       On one server (PHP 5.2.5) everything works great. On another
> server (PHP
>       5.2.9) I get Fatal error: Class 'Admin_Model_Infra_Something'
> not found .
> 
>       Obviously , to get a specific answer I would need to present a
> lot of
>       information regarding the different environments. So for now I'm
> wondering
>       if there are any common things to look at.
> 
>       Thanks a lot.
> 


Reply via email to