Verify that the startup model is installed in the /config/autoload.php application on line 56.
$autoload['libraries'] = array('database');
Secondly, make sure the php file name is lowercase (mymodel.php)
and finally, be sure to write down the first letter of your class name
class Mymodel extends CI_Model{}
Max benin
source share