If you are looking to auto load any model function or many models functions like I want to user model will be auto load in my project. Please review the below code for the same and make the changes accordingly.
Please open "codelgniter/application/config/config.php"
$autoload['model'] = array();
// replace this line with
$autoload['model'] = array('Users');
// if want to auto load multiple models
$autoload['model'] = array('Users', 'Features');
0 Comment(s)