Welcome Guest, Not a member yet? Register   Sign In
Reading from database table
#5

[eluser]TheFuzzy0ne[/eluser]
I think you should have two tables. One for the languages, and one for the actual translations. This will save you from having to add an extra column every time you want to add a new translation, and ending up with a table that has hundreds of columns. You can use the language ID and word key as a composite primary key.

I would suggest extending the Language class to get the functionality you want. You could also implement any caching here.


Messages In This Thread
Reading from database table - by El Forum - 04-08-2013, 09:25 AM
Reading from database table - by El Forum - 04-09-2013, 12:29 AM
Reading from database table - by El Forum - 04-09-2013, 01:04 AM
Reading from database table - by El Forum - 04-09-2013, 01:17 AM
Reading from database table - by El Forum - 04-09-2013, 01:27 AM
Reading from database table - by El Forum - 04-09-2013, 01:35 AM
Reading from database table - by El Forum - 04-09-2013, 03:41 AM
Reading from database table - by El Forum - 04-09-2013, 03:46 AM
Reading from database table - by El Forum - 04-20-2013, 07:36 AM
Reading from database table - by El Forum - 04-20-2013, 08:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB