S
S
Sergey2014-11-19 08:00:22
PHP
Sergey, 2014-11-19 08:00:22

What is the dot in the smarty variable?

I have a smarty variable {topicrow.TOPIC_TITLE}
How can I check its value?
{if $topicrow['TOPIC_TITLE'] == '123'} {/if} doesn't work.
What's the point?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Entelis, 2014-11-19
@butteff

Smarty has very detailed documentation. Even in Russian there is:
www.smarty.net/docsv2/ru/language.function.if.tpl
In general, I sincerely recommend you not to use smarts in general and third-party template engines in particular.
PHP itself is a great fast templating engine. Why introduce another entity here, I sincerely do not understand.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question