Poll: URI language identifier in core? You do not have permission to vote in this poll. |
|||
yes | 22 | 52.38% | |
no | 11 | 26.19% | |
maybe | 9 | 21.43% | |
Total | 42 vote(s) | 100% |
* You voted for this item. | [Show Results] |
Add URI Language Identifier to core? |
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
|