about 9 years ago
Hello Friends,
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');
$autoload['model'] = array();
// replace this line with
$autoload['model'] = array('Users');
// if want to auto load multiple models
$autoload['model'] = array('Users', 'Features');
Can you help out the community by solving one of the following Mobile Development problems?
Do activity (Answer, Blog) > Earn Rep Points > Improve Rank > Get more opportunities to work and get paid!
For more topics, questions and answers, please visit the Tech Q&A page.
0 Comment(s)