Magento 1.7 – Including External Library

classmagento-1.7

I have tried Joreon Vermeulen's method https://stackoverflow.com/questions/6417394/how-to-add-a-3rd-party-library-to-magento to autoload classes but to no avail. Now in my custom autoloader I get the class 'SnsClient.php' but this does not help Magento get the path. I can hardcode it for this particular file but then SnsClient.php uses a file in another folder. Magento is giving can't find error. I understand that I have to only find a way to get these files path but I have zero ideas about it. Please help

Best Answer

You can put your classes in the lib folder but just make sure they follow the naming convention. Class_Name_Here maps to the file Class/Name/Here.php relative to the lib folder

Related Topic