Welcome Guest, Not a member yet? Register   Sign In
Problems in Model Load
#1

[eluser]Unknown[/eluser]
We have a model that is ModelA, we have called from controller as

$this->load->helper('url');
/*
$this->load->model('ModelA','',TRUE);
$this->ModelA->FuncA();
*/

It works fine on the localhost .But when we have uploaded it to Unix web server in the directory www.a.com/work/codeignitor,it shows the message
problems in loading modela

However, we have separately tested with autoload.php by giving the ModelA in the array specified. But that time same problem occures in home page (expected as it loads first)

Can anyone suggest what is the problem. For your information, we have included followings in the config.php

$config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http");
$config['base_url'] .= "://".$_SERVER['HTTP_HOST'];
$config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
#2

[eluser]Aniket[/eluser]
enable logging by settiing
Code:
$config['log_threshold'] = 4;
in config/config.php so that you get all the debug messages..this may help in debugging....
hey also..what abt the database settings ? are the same as that of localhost ?? please check that ...




Theme © iAndrew 2016 - Forum software by © MyBB