Welcome Guest, Not a member yet? Register   Sign In
using CI's $this-> within JavaScript file
#2

[eluser]xwero[/eluser]
If you are using language strings both in javascript and php the best thing to do is to create a php language file and generate a javascript file for instance is the json format. This means you should write language switching code in javascript but that is easy. And then you load the language files like CI does.

This will benefit you when you are putting the framework above the public directory.


Messages In This Thread
using CI's $this-> within JavaScript file - by El Forum - 06-17-2008, 08:50 AM
using CI's $this-> within JavaScript file - by El Forum - 06-17-2008, 09:08 AM
using CI's $this-> within JavaScript file - by El Forum - 06-17-2008, 09:13 AM
using CI's $this-> within JavaScript file - by El Forum - 06-17-2008, 09:25 AM
using CI's $this-> within JavaScript file - by El Forum - 06-17-2008, 10:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB