AOEpeople / Aoe_ClassPathCache

Class path cache for Magento autoloader
http://www.fabrizio-branca.de/magento-class-path-cache.html
Open Software License 3.0
49 stars 16 forks source link

Better fix for Autoload when running from get.php #1

Closed mreeves1 closed 11 years ago

mreeves1 commented 11 years ago

I believe this bit: define('BP', dirname(dirname(dirname(dirname(dirname(FILE)))))); does not work if the Autoload.php file is placed using modman. If you manually copy the file to docroot/app/code/local/Varien/Autoload.php I believe it works.

The dirname bit will traverse up the real path as opposed to the symlinked path. I also used an internal variable instead of BP because later on BP may be redfined which throws a notice.

fbrnc commented 11 years ago

Hi Mike,

thanks a lot for your feedback and your patches. I'm currently busy preparing for Magento Imagine and the Hackathon, but I'll have a close looks afterwards.

Thanks, and have a great day,

Fabrizio