Jump to content

Programming syntax in a tpl file


Recommended Posts

Hello, I am trying to use this line in a .tpl file to do a small check and I want to change a variable to some value :

{if ($cookie->id_lang == 2) $fl_lang = 'fr_FR' }

However the syntax seems invalid, could anyone show me the correct way to do this please?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...