|
PHP复制代码 class MY_URI extends CI_URI {
public function __construct (){
parent ::__construct ();
}
function _set_uri_string ($str)
{
// Filter out control characters
$str = remove_invisible_characters ($str, FALSE);
// If the URI contains only a slash we'll kill it
$str=($str == '/') ? '' : $str;
require_once(BASEPATH .'database/DB.php');
$db=&DB ();
var_dump($db);
$query=$db->select('system_url')->where('request_url',$str)->get('url_rewrite');
if ($query->num_rows()>0){
$result=$query->row();
$str=$result->system_url;
}
var_dump($str);
$this->uri_string = $str;
}
}
复制代码
Fatal error: Class 'CI_Controller' not found
|
|