![]() |
My model unrecognize - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: My model unrecognize (/showthread.php?tid=39884) |
My model unrecognize - El Forum - 03-23-2011 [eluser]randori21[/eluser] i have made model file and call it on my controller. But why there is message like this when i upload on internet. On my localhost this class is no problem. An Error Was Encountered Unable to locate the model you have specified: privileges_model i call my model like this: class Inpage extends Controller { function inpage() { parent::Controller(); $this->load->model('Settings_model'); } function template(){ $intheme = $this->Settings_model->GetGeneralSetting(); return '../../../themes/'.$intheme['ThemeFolder'].'/'; } My model unrecognize - El Forum - 03-23-2011 [eluser]InsiteFX[/eluser] If your Running CodeIgniter 2.0.+ then your controller extends CI_Controller and xtends CI_Model Controller is now CI_Controller Model is now CI_Model InsiteFX My model unrecognize - El Forum - 03-23-2011 [eluser]randori21[/eluser] i used CodeIgniter 1.7.2 do I need the server settings? and in what section? My model unrecognize - El Forum - 03-24-2011 [eluser]InsiteFX[/eluser] Check your base_url in application/config/config.php Did you change your index.php to point to the correct system and application paths? If you have a .htaccess file that could also be your problem. InsiteFX My model unrecognize - El Forum - 03-24-2011 [eluser]danmontgomery[/eluser] The error says privileges_model, but the code you posted only has settings_model...? Where do you call privileges_model? |