If you would like to add your own library / custom PHP script to Magento, simply copy it to the /lib folder and name it the required way. Place your lib into /lib/MyOwnLib/MyLib.php for example and name the class inside…
Adding a custom library or PHP script (Magento 1)
To make a custom PHP library available in Magento, copy it into the lib directory and give it an appropriate name. For example, put the library in /lib/MyLibFolder/MyLib.php, name the file MyLib.php and structure it as follows:
|
1 2 3 |
class MyLibFolder_MyLib { // ... } |
You can…