Using site_url() in Codeigniter without getting a ? in the generated URL -
i trying use site_url() in codeigniter, every time put in parameters (for example site_url('controller_name'); url in link looks this:
http://{mysite}/index.php?controller_name   instead of think should getting is:
http://{mysite}/index.php/controller_name.   i using echo site_url() syntax in link on webpage far have been unsuccessful.
any suggestions?
i think problem config file check config file
$config['uri_protocol']    = 'query_string'; 
then change in this
$config['uri_protocol']    = 'auto'; 
Comments
Post a Comment