Welcome Guest, Not a member yet? Register   Sign In
CI 2.0 internationalization of site_url() problem
#5

[eluser]Unknown[/eluser]
[quote author="InsiteFX" date="1289934865"]site_url is in the url_helper.php

Did you load the url helper?

If you need to change the site_url you need to create a MY_url_helper.php.

InsiteFX[/quote]

I'm sorry to say but this is bad advise. Both the helper and the config class host site_url.
What hat you want to do is to alter the method in de the config class instead of creating an extra function on top of it. In this case the result will be that both method/function will be executed end u end up with sandwiched url's when you use site_url like "en/site/page/en/site/page" It took me several hours of debugging to find out what was going on.

The main problem is the i18n class. It contains a few bugs and loops that will give you the CI_Controller 210 error.

Hope this helps.
I will attach the Codeigniter 2.0 + HMVC ready files. Hope someone will find them useful and safe a few hours.


Messages In This Thread
CI 2.0 internationalization of site_url() problem - by El Forum - 11-16-2010, 06:13 AM
CI 2.0 internationalization of site_url() problem - by El Forum - 11-16-2010, 07:14 AM
CI 2.0 internationalization of site_url() problem - by El Forum - 11-16-2010, 08:24 AM
CI 2.0 internationalization of site_url() problem - by El Forum - 12-09-2010, 04:11 PM
CI 2.0 internationalization of site_url() problem - by El Forum - 01-23-2011, 05:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB