Welcome Guest, Not a member yet? Register   Sign In
Include Yahoo Library in Controllers
#1

[eluser]Unknown[/eluser]
Hi,
I am quite new to CI. I wish to include Yahoo.inc library which has lot of classes in one file - as a library. I wish to then autoload this library so it can be used in all Controllers.
is it possible? if yes, then how? please help.
Thanks in advance!
#2

[eluser]umefarooq[/eluser]
yes you can load library in controller you can call it any where in controller either in constructor or in any function of controller

Code:
$this->load->library('yourlibraryname');
#3

[eluser]Unknown[/eluser]
thanks, but the library file name must be same as that Class name..Also, in yahoo.inc there are seperate multiple classes like YahooSession, YahooUtil, etc..




Theme © iAndrew 2016 - Forum software by © MyBB