Why does the "$config['uri_protocol']" have no AUTO options in CI3.0? |
Hi, friend!
Why does the "$config['uri_protocol']" have no 'AUTO' options in CI3.0? Then, how to use the 'QUERY_STRING' model?
The 'uri_protocol' setting tells CI where to get the URI value from - it has nothing to do with query strings.
Lower down in application/config/config.php, there is an entire section for "Enable Query Strings". You can also do query string routing, described in http://www.codeigniter.com/user_guide/general/urls.html. (04-17-2015, 06:20 AM)ciadmin Wrote: The 'uri_protocol' setting tells CI where to get the URI value from - it has nothing to do with query strings. Thinks ciadmin. http://domain//?c=index&m=index Now the 'Query String' is working. The 'default_controller' has been set,but,this http://domain/index.php does not work. Quote:Unable to determine what should be displayed. A default route has not been specified in the routing file. (04-17-2015, 08:40 PM)qzzm Wrote: $route['default_controller'] = "index"; "index" is a poor choice for a controller name. It is one reserved or interpreted differently by CodeIgniter ... http://www.codeigniter.com/user_guide/ge...names.html The normal default controller is Welcome, but it can be anything you like, other than a reserved name. |
Welcome Guest, Not a member yet? Register Sign In |