Welcome Guest, Not a member yet? Register   Sign In
Loading Library and calling parameterized constructor
#1

[eluser]Sudz[/eluser]
Hello buddy,

I am converting my old web application into CI.
I have some problem while converting it.
Please give me solution or example,how could i do that.

Here is my question.
1. Can i load user created library into another user created library.
2. Can i call a method of one controller from another controller.
3. How can i load helper into library.
4. Can create parameterized constructer in CI.

If all these possible then Please post some example.

Thanks.
#2

[eluser]danmontgomery[/eluser]
1.
Code:
$CI = get_instance();
$CI->load->library('some_other_library');
$this->some_other_library = $CI->some_other_library
2. No, not without a modular solution such as modular extensions or modular ci.
3. see #1
4. http://ellislab.com/codeigniter/user-gui...aries.html "Passing Parameters When Initializing Your Class"
#3

[eluser]Sudz[/eluser]
Thanx noctrum.




Theme © iAndrew 2016 - Forum software by © MyBB