XF 2.1 Query about the variable syntax in template.

sajal

Active member
It seems that {{ }} and { } both works while printing variables in the template.

For ex:

{{ $myVar }} and { $myVar } both seems to be working.

So, what's the correct way?
 
You can use either for echoing a variable, but you can embed expressions inside of double braces (like ternary expressions or math).
 
Top Bottom