[newbie]Cannot load model |
HI , i try to load model in a controller function :
this is my function : Code: public function prova(){ in models i have file called user_model.php : Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); http://localhost/user_codeigniter/index.php/user/prova this error appear : An uncaught Exception was encountered Type: RuntimeException Message: Unable to locate the model you have specified: User_model i do permission 755 to folder . but the error is the same
$this->load->model('user_model');
try $this->load->model('User_model');
Simpler is always better
1)
PHP Code: $q = $this->db->get('user')->row(); Also make sure that when you saved the user_model that it was saved with the first letter capitalized. User_model.php What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
@codenair,
Do you see the date of these posts? What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |