[eluser]Unknown[/eluser]
Hi CodeIgniter Users,
im new to CI and i have a problem...
I have a single Boolean Argument in a Library Constructor and i would like to set it to true by default, like
Code:
__construct($param = true) { ... }
and in my Controller, i call it with
Code:
$this->load->library('LibName', false);
that doesnt work...as it sets the $param in the lib constructor to true, even if i call it with false.
To pass this, do i really have to use an array with a single element, like
Code:
$this->load->library('LibName', array('bool'=>'false'));
and treat the parameter as an array in the constructor of my Lib?
This just happens on a Windows Webserver with xampp php5 and CI1.7
The other machines are Linux, Mac with CI1.63 and the error doesnt happen at all.
I dont know if it is an issue with CI1.7 or something with the windows server ?
Im asking you because it looks a little strange to me to pass arrays with a single element to replace a boolean value, like the one i described above
Thanks in advance and sorry if my question is too noobie-like
Adrian