Hey Robert,

> I've created my models using zend_tool so they were created with
> MyNamespace_Model_Something under application/models.
> 
> I am going to use Doctrine for db related operations and the service
> approach in order to have thin controllers.

If you have a chance to, you should try using Doctrine 2. 

This will only work, though, if you have an environment with PHP 5.3 at least, 
as it requires namespace support. You should check out the Bisna library by 
Guilhermo Blanco for integrating Doctrine2 into a ZF1 application. You can find 
it on Github.

If you got this route, you should check out Matthew Weier O'Phinneys 
back-ported resource autoloader, so you can easily load namespaced resources.

> My controllers are going to be under controllers - ok
> Doctrine, Zend files under library - ok
> 
> Where should I put the MyNamespace_Someting_Service and the Doctrine
> generated ones?

In the "services" folder of the module in which namespace they should resize.

Possibly, this question is slightly off-topic (see Doctrine mailing list).


Best regards,

Andreas
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to