Welcome Guest, Not a member yet? Register   Sign In
Codeigniter library: autoload and params
#2

[eluser]theprodigy[/eluser]
one of two ways:

1) add a config method, and move the code from your constructor to the config method, and pass your params to the config method.

2) don't autoload it. Instead, build a MY_Controller, and load your library via the constructor of your MY_Controller, and pass in the params. Then extend all your controllers from your MY_Controller.


Messages In This Thread
Codeigniter library: autoload and params - by El Forum - 06-21-2011, 01:10 PM
Codeigniter library: autoload and params - by El Forum - 06-21-2011, 03:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB