I want to include a file to my custom module observer.

I added my file folder to lib folder.

In my observer i called like below

require_once 'MailchimpAPI/MCAPI.class.php';//this is workig fine

//I want to call another file

require_once 'Mailerlite/vendor/autoload.php';//this is not working

both folders are in same path



Can any one tell me what is wrong here.I want to implement Mailerlite to my magento registration.

  • try with this require_once Mage::getBaseDir('lib').DS.'Mailerlite'.DS.'vendor'.DS.'autoload.php'; – Minesh Patel Jun 28 '16 at 10:29
  • 1
    it return false ? or autoload not working ? check this and this – Minesh Patel Jun 28 '16 at 11:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.