CodeIgniter Forums
CodeIgniter Modular Extensions & the i18n library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: CodeIgniter Modular Extensions & the i18n library (/showthread.php?tid=59830)



CodeIgniter Modular Extensions & the i18n library - El Forum - 11-26-2013

[eluser]die onsigbare[/eluser]
Hi All,

I have been using the CodeIgniter i18n library by Jérôme Jaglale (http://maestric.com/en/doc/php/codeigniter_i18n) , which works great for my project.

But since I need to write separate modules, I recently added CodeIgniter Modular Extensions ( https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc ) and the navigation breaks.

How can I solve this issue please, I would to use both the i18n library & Modular Extensions.

Thank you in advance.


CodeIgniter Modular Extensions & the i18n library - El Forum - 11-26-2013

[eluser]die onsigbare[/eluser]
[quote author="die onsigbare" date="1385498222"]Hi All,

I have been using the CodeIgniter i18n library by Jérôme Jaglale (http://maestric.com/en/doc/php/codeigniter_i18n) , which works great for my project.

But since I need to write separate modules, I recently added CodeIgniter Modular Extensions ( https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc ) and the navigation breaks.

How can I solve this issue please, I would to use both the i18n library & Modular Extensions.

Thank you in advance.[/quote]

I think my application navigation fails to work because i18n library introduces adds a language in the site url, in my case my url is http://localhost/index.php/en/home and after adding Modular Extensions, my navigation/links stop working.


CodeIgniter Modular Extensions & the i18n library - El Forum - 12-24-2013

[eluser]umefarooq[/eluser]
there is no problem at all in you application you need to change something MY_Config and MY_Lang which come with codeigniter i18n library

you can see in MY_Config class extending CI_Config just change it to

Code:
class MY_Config extends CI_Config

to

class MY_Config extends MX_Config

also same for MY_Lang file

Code:
class MY_Lang extends CI_Lang

to

class MY_Lang extends MX_Lang