Welcome Guest, Not a member yet? Register   Sign In
Helpers and URL issues
#1

[eluser]Unknown[/eluser]
Hi all,

pretty new to CI and having some frustrations with the helpers.

I was forced to choose query string over auto when selecting the URI protocol in config.php
this means that the urls i need to use:
http://www.whatever.com/index.php?forms
instead of
http://www.whatever.com/index.php/forms

I was wondering what i would need to change about my server so i can use the auto setting (i assume it defaults to path_info)...
#2

[eluser]Colin Williams[/eluser]
From the User Guide

Quote:Please note: If you are using query strings you will have to build your own URLs, rather than utilizing the URL helpers (and other helpers that generate URLs, like some of the form helpers) as these are designed to work with segment based URLs.

You could create a simple PHP file and print_r($_SERVER) to see what env variables are available. PATH_INFO, ORIG_PATH_INFO, or REQUEST_URI should be there
#3

[eluser]Unknown[/eluser]
Hey thanks for the quick reply.

I have PATH_INFO and REQUEST_URI. but not ORIG_PATH_INFO.

As you may have realized, im VERY new to CI (and php).
Big Grin




Theme © iAndrew 2016 - Forum software by © MyBB