Reference from Github: https://github.com/bcit-ci/CodeIgniter/i...-255716662
I have changed the line in autoload.php file. I am trying to call the this model in my controller. This is not working.
$autoload['model'] = array("M_functions"=>"function");
If I call this model in the controller manually. It works fine.
$this->load->model("M_functions","function");
## Error
`
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Diagnose::$function
Filename: controllers/Diagnose.php
Line Number: 21
Backtrace:
File: /var/www/html/hfs/application/controllers/Diagnose.php
Line: 21
Function: _error_handler
File: /var/www/html/hfs/index.php
Line: 315
Function: require_once
Fatal error: Call to a member function password_generator() on null in /var/www/html/hfs/application/controllers/Diagnose.php on line 21
A PHP Error was encountered
Severity: Error
Message: Call to a member function password_generator() on null
Filename: controllers/Diagnose.php
Line Number: 21
Backtrace:
`
I have function name password_generator() in the M_functions model. Same thing is happening for libraries also. I have manually load the session, form_validation library.
###For input library.
$autoload['libraries'] = array('database','../core/input','encrypt');
I have to call the library like this. If I was trying to call without relative path. input library is also not working.
I have CodeIgniter 3.1.0. I have compared my Loader.php file with latest developed branch and 3.1.0 branch file. Both are same.
someone suggest this[ solution. ](https://github.com/bcit-ci/CodeIgniter/issues/3733)
when I try to autoload the library session.
I have this error.
Unable to locate the specified class: Session.php
I have changed the line in autoload.php file. I am trying to call the this model in my controller. This is not working.
$autoload['model'] = array("M_functions"=>"function");
If I call this model in the controller manually. It works fine.
$this->load->model("M_functions","function");
## Error
`
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Diagnose::$function
Filename: controllers/Diagnose.php
Line Number: 21
Backtrace:
File: /var/www/html/hfs/application/controllers/Diagnose.php
Line: 21
Function: _error_handler
File: /var/www/html/hfs/index.php
Line: 315
Function: require_once
Fatal error: Call to a member function password_generator() on null in /var/www/html/hfs/application/controllers/Diagnose.php on line 21
A PHP Error was encountered
Severity: Error
Message: Call to a member function password_generator() on null
Filename: controllers/Diagnose.php
Line Number: 21
Backtrace:
`
I have function name password_generator() in the M_functions model. Same thing is happening for libraries also. I have manually load the session, form_validation library.
###For input library.
$autoload['libraries'] = array('database','../core/input','encrypt');
I have to call the library like this. If I was trying to call without relative path. input library is also not working.
I have CodeIgniter 3.1.0. I have compared my Loader.php file with latest developed branch and 3.1.0 branch file. Both are same.
someone suggest this[ solution. ](https://github.com/bcit-ci/CodeIgniter/issues/3733)
when I try to autoload the library session.
I have this error.
Unable to locate the specified class: Session.php