Welcome Guest, Not a member yet? Register   Sign In
Poll: URI language identifier in core?
You do not have permission to vote in this poll.
yes
52.38%
22 52.38%
no
26.19%
11 26.19%
maybe
21.43%
9 21.43%
Total 42 vote(s) 100%
* You voted for this item. [Show Results]

Add URI Language Identifier to core?
#34

(This post was last modified: 05-04-2015, 07:14 AM by sv3tli0.)

Code:
$route['{?lang}/something'] = "Go to hell";

This can be easy parsed as:
If you catch "something" and it has or it has no prefix LANG (which will have some kind of validation not anything can be accepted) > Go to hell..

This LANG can come as config from config.php and it can be used at all places where devs need it.
With optional allowed langs list and optional supporting locales as en / en-US with proper validation..

For those who are using subdomains this wont have any effect as they wont add it to their route configuration..
But they still can use that LANG at their CI application (skipping routes) by manipulating it depending on their subdomains.. like..
Code:
fr.domain.com > set_item( 'lang',  'fr')
Best VPS Hosting : Digital Ocean
Reply


Messages In This Thread
RE: Add URI Language Identifier to core? - by sv3tli0 - 05-04-2015, 07:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB