在000webhost中运行带有数据库的codeigniter项目的URl时发生以下错误,数据库的配置如下所示。
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'id4100798_skyloade_msd',
'password' => '******',
'database' => 'id4100798_skyloade_msd',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);
我们浏览网址时会出现以下错误
错误:
消息:无法找到您指定的模型:数据
URL: https://medicalsociodoc.000webhostapp.com/SiteController
它在localhost上工作正常。