|
当 $config['enable_query_strings'] = true;
时
文件 system\libraries\Router.php
function _set_routing()
{
// Are query strings enabled in the config file?
// If so, we're done since segment based URIs are not used with query strings.
if ($this->config->item('enable_query_strings') === TRUE AND isset($_GET[$this->config->item('controller_trigger')]))
{
$this->set_directory(trim($this->uri->_filter_uri($_GET[$this->config->item('directory_trigger')])));//加上这行
$this->set_class(trim($this->uri->_filter_uri($_GET[$this->config->item('controller_trigger')]))); |
|