[eluser]Unknown[/eluser]
I've tried searching both the forum and google for this, but come up with nothing.
In my design I would like when loading the library to pass a single variable (id) to it. The user guide says that libraries can be initialized with arrays so I could do something like:
Code:
$this->load->library('Mylib', array('id' => $id));
But from a estetic point of view (and so I dont have to remember to wrap it in an array) I'd rather do:
Code:
$this->load->library('Mylib', $id);
Would that work?