Welcome Guest, Not a member yet? Register   Sign In
flexi cart - A comprehensive shopping cart library for CodeIgniter
#14

[eluser]koichirose[/eluser]
Thank you, I'll look into it tomorrow morning!

For now I'm trying to set the language, so I created another folder (inside application/language), pasted flexi_cart_lang.php and translated everything.
I'm having trouble loading the correct lang, since I'm setting a codeigniter variable in a hook - i.e. I do:
Code:
$CI =& get_instance();
$CI->settings->ci_language = 'italian';

Then I tried editing flexi_cart_lite_model.php, since apparently that's where the language is loaded:
Code:
$this->lang->load('flexi_cart', $this->settings->ci_language);

Inside __construct though I can't use $this, nor get_instance, so I don't know how to access that variable.
I see there's a &__get() function in that model, but I don't understand if it could help me.

Thank you again!


Messages In This Thread
flexi cart - A comprehensive shopping cart library for CodeIgniter - by El Forum - 05-15-2012, 10:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB