Welcome Guest, Not a member yet? Register   Sign In
What is the best way to store a variable(state)?
#1

[eluser]Unknown[/eluser]
Hi to all!

I'm new in CodeIgniter and I have a pretty basic question.

Say that I have a multilanguage site (english + greek).

The site starts with 2 language buttons.

What is the best way to store the language state (according to which button the user pressed)?

Should I use sessions or something else?

An the same goes for my menu.

What is the best way to find out whenever use a controller to which part of the site you are (for example I have clicked the 2nd menu btn and after that the 3rd submenu btn).

Should I use sessions again to store the current menu states?

Thanx a lot for any answers.

Cheers!


Messages In This Thread
What is the best way to store a variable(state)? - by El Forum - 06-08-2012, 02:15 AM
What is the best way to store a variable(state)? - by El Forum - 06-08-2012, 02:36 AM
What is the best way to store a variable(state)? - by El Forum - 06-08-2012, 03:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB