php - Codeigniter: load library array with default parameter array and other library in one line code -
hi below current code sample:
as can seen, have load library mylog
separately default parameter array.
$this->load->library(['tank_auth', 'session', 'form_validation']); $log_config = array( 'module' => 'estate', ); $this->load->library('mylog', $log_config);
is there way load mylog
library others in 1 line has default parameters $log_config
array passed it?
there no way load library others in 1 line has default parameters array passed it.
you cannot load library array default parameter array , other library in 1 line code.
as per codeigniter docs, can load library in question
$this->load->library(['tank_auth', 'session', 'form_validation']);
or
"library" single argument: array of parameters, in question:
$log_config = array( 'module' => 'estate', ); $this->load->library('mylog', $log_config);
Comments
Post a Comment