Welcome Guest, Not a member yet? Register   Sign In
My model unrecognize
#1

[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'].'/';
}
#2

[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
#3

[eluser]randori21[/eluser]
i used CodeIgniter 1.7.2
do I need the server settings? and in what section?
#4

[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
#5

[eluser]danmontgomery[/eluser]
The error says privileges_model, but the code you posted only has settings_model...? Where do you call privileges_model?




Theme © iAndrew 2016 - Forum software by © MyBB