Hello all,
I'm working on a project where the content of the website will change location wise.
Content is basically the list of local theatres. If someone from New York visits the site, he/she can select city as NY and Broadway theatre will be shown first in the list.
Also, since users have their accounts set up already, I want to make sure by default they are shown the content of their city, but they can change city anytime by using the select box fixed on top. I know this would be easier once I figure out how do I sort the content.
What I've thought so far is, I can maintain a variable, something like a global variable called as $current_city.
By default, it'll be like $current_city = $user->user_city.
But when user selects other city, the $current_city variable should take the selected value.
Thanks for your time.