Welcome Guest, Not a member yet? Register   Sign In
Integration of Shipping API (RocketShipIt )
#1

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 ?
Reply
#2

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
Reply
#3

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');
Reply
#4

(This post was last modified: 04-16-2016, 05:56 PM by Tpojka.)

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.
Reply
#5

(04-15-2016, 12:46 AM)amitpatel1849 Wrote: 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
Hi amitpatel,

 How to integrate fedEx create shipment api in codeigniter..please help me
Reply




Theme © iAndrew 2016 - Forum software by © MyBB