php - Model autoloading not workin in CodeIgniter -
so i'm autoloading models this:
$autoload['model'] = array('user_model','article_model','settings_model','authenticate_model');
and have next files:
models/user_model.php:
<?php class user_model extends ci_model { public function __construct() { parent::__construct(); } } ?>
and next error appears:
unable locate model have specified: user_model
and if access file directly:
you don't have permission access /application/models/user_model.php on server.
so can causing problem?
as @beatalex said, issue first letter of models being in lower case. reason when changing name before, , pushing git using command:
git commit -a -m "broke everythink"; git push heroku master
it wasn't changing name of file.
i had delete files, push changes, , create them again , push them again, , it's working.
Comments
Post a Comment