CodeIgniter Forums
Why does the "$config['uri_protocol']" have no AUTO options in CI3.0? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17)
+--- Thread: Why does the "$config['uri_protocol']" have no AUTO options in CI3.0? (/showthread.php?tid=61465)



Why does the "$config['uri_protocol']" have no AUTO options in CI3.0? - qzzm - 04-17-2015

Hi, friend!
Why does the "$config['uri_protocol']" have no 'AUTO' options in CI3.0?
Then, how to use the 'QUERY_STRING' model?


RE: Why does the "$config['uri_protocol']" have no AUTO options in CI3.0? - ciadmin - 04-17-2015

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.


RE: Why does the "$config['uri_protocol']" have no AUTO options in CI3.0? - qzzm - 04-17-2015

(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.

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.

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.



RE: Why does the "$config['uri_protocol']" have no AUTO options in CI3.0? - ciadmin - 04-17-2015

What are the settings values in your application/config/routes.php?


RE: Why does the "$config['uri_protocol']" have no AUTO options in CI3.0? - qzzm - 04-17-2015

$route['default_controller'] = "index";
$route['404_override'] = '';


RE: Why does the "$config['uri_protocol']" have no AUTO options in CI3.0? - ciadmin - 04-17-2015

(04-17-2015, 08:40 PM)qzzm Wrote: $route['default_controller'] = "index";
$route['404_override'] = '';

"index" is a poor choice for a controller name.
It is one reserved or interpreted differently by CodeIgniter ...
http://www.codeigniter.com/user_guide/general/reserved_names.html

The normal default controller is Welcome, but it can be anything you like, other than a reserved name.