Hello!
How can I just transfer a variable to the .tpl file I need?
I do this:
$content = $template->fetch("news.tpl"); $template->assign('content',$content); $template->assign('row',$row); $template->display($_SERVER['DOCUMENT_ROOT']."/templates/default/main.tpl");
Ie, I pass the row variable to the main.tpl file. A variable is passed when this line is triggered.
And I need to immediately transfer this variable to the file news.tpl, that is, transfer it to both main.tpl and to news.tpl. I need it in news.tpl since I use it:
$content = $template->fetch("news.tpl"); $template->assign('content',$content);
How to do this?
Thanks in advance.