Answer the question
In order to leave comments, you need to log in
How to insert php code into Smarty tpl?
Hello! Guys, tell me how to insert php code into smart. There I have a condition in which $_SERVER['request_uri'] is checked. I can't figure out how to edit..
Answer the question
In order to leave comments, you need to log in
better use
{if strpos($smarty.server.REQUEST_URI,"часть нужного адреса /home/ например ") !== false}
контент
{/if}
like an array.
Reading the doc. Googled it in 15 seconds. www.smarty.net/docsv2/ru/language.variables.smarty.tpl
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question