CodeIgniter Forums
Problem with Internationalization Views - 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: Problem with Internationalization Views (/showthread.php?tid=4943)



Problem with Internationalization Views - El Forum - 12-26-2007

[eluser]Céd'[/eluser]
Hi,

First of all, excuse me for my bad English... I'll try to do my best.

I've got a problem while trying to use Internationalization Views found on the wiki [1]. After having modify route.php, config.php, moving url helper to url_i18n helper and finaly create controller i18n.php, i got this error :

Code:
Parse error: syntax error, unexpected '}' in /opt/lampp/htdocs/3108/system/helpers/url_helper.php on line 107

I'm pretty sure to have correctly paste the url customization and the line 107 correspond to the end (})of the function anchor_i18n();...

Thanks.

[1] http://codeigniter.com/wiki/Category:Internationalization::Internationalization_Views_i18n/


Problem with Internationalization Views - El Forum - 12-26-2007

[eluser]xwero[/eluser]
check if all previous functions have corresponding brackets. In the url_helper code in the method anchor_i18n i see
Code:
return '';
    }
But i can't see a start bracket for this.


Problem with Internationalization Views - El Forum - 12-26-2007

[eluser]Céd'[/eluser]
Thank you xwero, it was that.

I removed the closing bracket on line 94 and it seems to be OK.

Thanx again.