URI Language Identifier not working anymore |
[eluser]hykoh[/eluser]
Hello, i've updated my website to CI Reactor 2.0. It seems to work fine, except my language extension. I've seen that the Language Library is now within the "Core" and renamed to "Lang.php". I tried to refactoring my class to "MY_Lang", but it isnt working ... is it still possible to extend the lang class ??? I was using the wiredesignz URI Language identifier from the wiki. Or is there now any other way to use language files via the uri ? for example: http://www.example.com/en/controller/method, http://www.example.com/de/controller/method etc. Thanks for any help!
[eluser]wiredesignz[/eluser]
URI Language Identifier wiki page is updated for CI 2.0
[eluser]hykoh[/eluser]
Hey wiredesignz, thanks for the fast update. But i get another problem now .. in the old versions of URI Language Identifier, the main language file was loaded automatically. It is removed now. If i append it to the source, it will result in an error: Code: Fatal error: Class 'CI_Controller' not found in /var/www/blabla/system/core/CodeIgniter.php on line 210 I'm just added the parent::load($user_lang, $user_lang); in the code: Code: class MY_Lang extends CI_Lang Why is there now an error ? Or how can i implement a default language file automatically ??? |
Welcome Guest, Not a member yet? Register Sign In |