下面是文件内容!
config.php
$config['base_url']="http://localhost/";
$config['index_page'] = "";
$config['uri_protocol'] = "PATH_INFO";
$config['url_suffix'] = "";
$config['language'] = "english";
$config['charset'] = "UTF-8";
$config['enable_hooks'] = TRUE;
$config['subclass_prefix'] = 'MY_';
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';
$config['directory_trigger'] = 'd'; // experimental not currently in use
$config['log_threshold'] = 4;
$config['log_path'] = '';
$config['log_date_format'] = 'Y-m-d H:i:s';
$config['cache_path'] = '';
$config['encryption_key'] = "f0rsh@r3";
$config['sess_cookie_name'] = 'PHPSESSID';
$config['sess_expiration'] = 259200;
$config['sess_encrypt_cookie'] = TRUE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name'] = 'sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['cookie_prefix'] = "";
$config['cookie_domain'] = ".forshare.me";
$config['cookie_path'] = "/";
$config['global_xss_filtering'] = TRUE;
$config['compress_output'] = TRUE;
$config['time_reference'] = 'local';
$config['rewrite_short_tags'] = FALSE;
$config['proxy_ips'] = '';
5 个解决方案
#1
database.php
$active_group = "sqlite";
$active_record = TRUE;
$db['sqlite']['hostname'] = "localhost";
$db['sqlite']['username'] = "";
$db['sqlite']['password'] = "";
$db['sqlite']['database'] = "data/db/db.sdb";
$db['sqlite']['dbdriver'] = "sqlite";
$db['sqlite']['dbprefix'] = "";
$db['sqlite']['pconnect'] = FALSE;
$db['sqlite']['db_debug'] = FALSE;
$db['sqlite']['cache_on'] = FALSE;
$db['sqlite']['cachedir'] = "";
$db['sqlite']['char_set'] = "utf8";
$db['sqlite']['dbcollat'] = "utf8_general_ci";
$db['mysql']['hostname'] = "127.0.0.1";
$db['mysql']['username'] = "chansim_web";
$db['mysql']['password'] = "ACCD427EAA962AF7ACB0DCE12149298A";
$db['mysql']['database'] = "chansim";
$db['mysql']['dbdriver'] = "mysql";
$db['mysql']['dbprefix'] = "";
$db['mysql']['pconnect'] = TRUE;
$db['mysql']['db_debug'] = FALSE;
$db['mysql']['cache_on'] = FALSE;
$db['mysql']['cachedir'] = "";
$db['mysql']['char_set'] = "utf8";
$db['mysql']['dbcollat'] = "utf8_general_ci";
#2
首页跳到system/application/views/index.php去了
但是为什么首页没有引用到css布局???
为什么点链接跳转的url没在application/下面
而是跳刀system同级去了?????
但是为什么首页没有引用到css布局???
为什么点链接跳转的url没在application/下面
而是跳刀system同级去了?????
#3
飘过!不是ci模块问题。
#4
1、在config/routes.php里有默认的控制器,你没改的话,只输入域名的时候就用这个默认的控制器。
2、你从浏览器看源代码,打开CSS链接有内容不,如果是链接不对,访问不到。
3、你是不是误改了什么核心文件了
#5
1. 因为是本地部署 所以$config['base_url']="http://localhost/";
2.不知道为什么我把代码文件解压出来所有汉字都是乱码 在浏览器里面查看源代码 汉字也是乱码 而且源代码也是乱的 没相应的格式
3. 就改了config.php 和database.php里面的东西!!!
#1
database.php
$active_group = "sqlite";
$active_record = TRUE;
$db['sqlite']['hostname'] = "localhost";
$db['sqlite']['username'] = "";
$db['sqlite']['password'] = "";
$db['sqlite']['database'] = "data/db/db.sdb";
$db['sqlite']['dbdriver'] = "sqlite";
$db['sqlite']['dbprefix'] = "";
$db['sqlite']['pconnect'] = FALSE;
$db['sqlite']['db_debug'] = FALSE;
$db['sqlite']['cache_on'] = FALSE;
$db['sqlite']['cachedir'] = "";
$db['sqlite']['char_set'] = "utf8";
$db['sqlite']['dbcollat'] = "utf8_general_ci";
$db['mysql']['hostname'] = "127.0.0.1";
$db['mysql']['username'] = "chansim_web";
$db['mysql']['password'] = "ACCD427EAA962AF7ACB0DCE12149298A";
$db['mysql']['database'] = "chansim";
$db['mysql']['dbdriver'] = "mysql";
$db['mysql']['dbprefix'] = "";
$db['mysql']['pconnect'] = TRUE;
$db['mysql']['db_debug'] = FALSE;
$db['mysql']['cache_on'] = FALSE;
$db['mysql']['cachedir'] = "";
$db['mysql']['char_set'] = "utf8";
$db['mysql']['dbcollat'] = "utf8_general_ci";
#2
首页跳到system/application/views/index.php去了
但是为什么首页没有引用到css布局???
为什么点链接跳转的url没在application/下面
而是跳刀system同级去了?????
但是为什么首页没有引用到css布局???
为什么点链接跳转的url没在application/下面
而是跳刀system同级去了?????
#3
飘过!不是ci模块问题。
#4
1、在config/routes.php里有默认的控制器,你没改的话,只输入域名的时候就用这个默认的控制器。
2、你从浏览器看源代码,打开CSS链接有内容不,如果是链接不对,访问不到。
3、你是不是误改了什么核心文件了
#5
1. 因为是本地部署 所以$config['base_url']="http://localhost/";
2.不知道为什么我把代码文件解压出来所有汉字都是乱码 在浏览器里面查看源代码 汉字也是乱码 而且源代码也是乱的 没相应的格式
3. 就改了config.php 和database.php里面的东西!!!