Welcome Guest, Not a member yet? Register   Sign In
confusing uri_string()
#3

(02-12-2015, 07:40 PM)twpmarketing Wrote: Janul, I'm not clear what you are asking for.

Did you look at the method: current_url()?  It returns the full url of the current page, with all segments.

If you only want the segments, use the method: uri_string()

Please explain, with examples, what output you would like to receive.

Hi,
thanks for you reply.
example:
Let's presume I have
I have app running https://HOST/APP - where /APP is root for CI app
now I have controller TestCon.php and function show($id)
On different page I can create link to above one: base_url('testcon/show/'.$id.'') - which works fine -> https://HOST/APP/testcon/show/($id)
However uri_string('testcon/show/'.$id.'')  gives 'testcon/show/'.$id.''  not APP/testcon/show/($id)
Off course uri_string() work correctly related to doc (segments)
My question is if could have function in CI to create link with absolute URI

Thanks,
Janusz






 
Reply


Messages In This Thread
confusing uri_string() - by janul - 02-12-2015, 04:45 PM
RE: confusing uri_string() - by twpmarketing - 02-12-2015, 07:40 PM
RE: confusing uri_string() - by janul - 02-13-2015, 03:15 AM
RE: confusing uri_string() - by mwhitney - 02-13-2015, 10:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB