Hello,

I'm trying to setup a correct autoload, but I have a small problem with that.
I have this folder structure;

/Application/Models --- Here are my Models stored. At this point in a
folder called "AR"
/llibrary/My  --- Here are my Classes stored
/llibrary/ActiveRecord  --- Here is my ActiveRecord implementation stored

With this function I setup the autoloader:

        protected function _initAutoload()
        {
                $autoloader = Zend_Loader_Autoloader::getInstance();
                $autoloader->registerNamespace( 'My_' );
                $autoloader->registerNamespace( 'ActiveRecord_' );
                $autoloader->registerNamespace( 'AR_' );
                
                return $autoloader;
        }

Now to my problem. I would like to use my Model Classes without a Prefix.
At this Time I use for example:
AR_User::find();

But I want to use it like this:
User::find();

How do I need to setup the Autoloader to meet my needs?

Thanks for your help,
Stefan Sturm

Reply via email to