i think u misunderstood me. i meant that with Doctrine 2 i can use

$classLoader = new \Doctrine\Common\ClassLoader('Doctrine\ORM',
realpath(__DIR__ . '/../../lib'));

to tell the class loader to look for classes under the Doctrine\ORM
namespace under a path. how do i do the same in Zend Framework?

On Mon, Jul 26, 2010 at 9:35 AM, Wil Moore III [via Zend Framework
Community] 
<[email protected]<ml-node%[email protected]>
> wrote:

>  jiewmeng wrote:
> <p>but what if i want to load my own namespaced classes Doctrine
> Entities/Models & Proxies. in a specific directory? where shld my Doctrine
> Models and Proxies go btw? i put them in <code>APPLICATION_PATH</code>
> now</p>
>
> I put them under my namespace. For example if your namespace is "my", then
> you would do something like:
>
> namespace my\model;
> class User ...
>
>
> You would of course reference this class as
> $user = new my\model\User()
> or
> $user = new \my\model\User()
> --
> Wil Moore III
>
> Why is Bottom-posting better than Top-posting:
> http://www.caliburn.nl/topposting.html
>
>
> ------------------------------
>  View message @
> http://zend-framework-community.634137.n4.nabble.com/How-do-i-setup-Autoloading-of-PHP-5-3-namespaced-classes-and-specify-a-base-path-tp2301361p2301845.html
> To unsubscribe from How do i setup Autoloading of PHP 5.3 namespaced
> classes and specify a base path?, click 
> here<http://zend-framework-community.634137.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=amlld21lbmdAZ21haWwuY29tfDIzMDEzNjF8LTIxMzE4MjQyMTk=>.
>
>
>

-- 
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/How-do-i-setup-Autoloading-of-PHP-5-3-namespaced-classes-and-specify-a-base-path-tp2301361p2301973.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to