Welcome Guest, Not a member yet? Register   Sign In
Why does the "$config['uri_protocol']" have no AUTO options in CI3.0?
#1

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

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.
Reply
#3

(This post was last modified: 04-17-2015, 04:31 PM by qzzm.)

(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.
Reply
#4

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

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

(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/ge...names.html

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




Theme © iAndrew 2016 - Forum software by © MyBB