• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems in Model Load

We have a model that is ModelA, we have called from controller as


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']);

enable logging by settiing
$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 ...

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.