![]() |
SET uri_segment ? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: SET uri_segment ? (/showthread.php?tid=49635) |
SET uri_segment ? - El Forum - 02-27-2012 [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/ Quote: in English: http://codeigniter.com/en/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/ 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 |