Integration of Shipping API (RocketShipIt ) |
I am integrating RocketShipIt API in my website for shipping purpose.
How to integrate it in CodeIgniter? How to load the 3rd party files in CodeIgniter? For eg; $rate = new \RocketShipIt\Rate('fedex'); how can i load the above line in CodeIgniter ?
Hi Angeli,
Put your Class file in the Library Folder. Lest say You have Fedex class put file Fedex.php file in Library folder then call that library using $this->load->library('Fedex'); and use the object $this->fedex. Contact me on skype: amitpatel727 if anything. Regards, Amit
another way to call a library - sometimes this is easier if you are working with demo code
same thing put the library in your application/libraries folder and then in the constructor or method: require_once(APPPATH.'libraries/somelibrary/libraryhome.php');
Official documentation points to CodeIgniter installation.
Only difference for you could be (if not using MY_Controller) extending your controller class(es) from CI_Controller. Everything else is pretty straight forward.
(04-15-2016, 12:46 AM)amitpatel1849 Wrote: Hi Angeli,Hi amitpatel, How to integrate fedEx create shipment api in codeigniter..please help me |
Welcome Guest, Not a member yet? Register Sign In |