Welcome Guest, Not a member yet? Register   Sign In
SET uri_segment ?
#1

[eluser]popovich[/eluser]
Is there a way to add a fictional parameter to the uri_segment Object?

For now my URIs have this structure:
Code:
domain.tld/language-accept-code/node-label/
so this very page would look like
Quote: in English: http://codeigniter.com/en/forums/viewthread/211984/
in French: http://codeigniter.com/fr/forums/viewthread/211984/
in German: http://codeigniter.com/de/forums/viewthread/211984/

My objective is to remove the "language-accept-code" from the URI for the default language, so it looks like
Code:
domain.tld/node-label/

thus changing the look for the default English
Quote:in English: http://ellislab.com/forums/viewthread/211984/
in French: http://codeigniter.com/fr/forums/viewthread/211984/
in German: http://codeigniter.com/de/forums/viewthread/211984/

The problem is that with this scheme (and the existing code) some of the libraries are missing "en" or "de" or "fr" at uri->segment(1) and fail. I want to be able to add those accept codes to segment(1), even if they are absent from the URL.

Is this possible?

Cheers,
pop




Theme © iAndrew 2016 - Forum software by © MyBB