Including non CodeIgniter scripts |
[eluser]RickP[/eluser]
I think my question/problem is similar. I have installed an outside library which works fine except that I don't know how to pass values to it. $this->load->library() seems to allow the passing of only one value but the library I'm using will accept six values (all have good defaults). If I just want the defaults it works fine. How can I pass multiple values?
[eluser]danmontgomery[/eluser]
http://ellislab.com/codeigniter/user-gui...aries.html Quote:Passing Parameters When Initializing Your Class
[eluser]RickP[/eluser]
I <b>have</b> read the documentation. It doesn't work for me. I create an array of two items which I pass as the second argument to $this->load->library() but within the class constructor func_num_args() returns 0. Shouldn't it return 1? UPDATE: I found the problem. The library had been loaded in the controller so when I loaded it in the model (with the arg) the loading was ignored.
|
Welcome Guest, Not a member yet? Register Sign In |