Include a tpl file with variables (Smarty)
- by user1640660
I have a "links.tpl" file which contains lines with many variables such as below
{assign var=link_main value="index.php"}
{assign var=link_login value="?a=login"}
but when i include this file in home.tpl using {include file="file.tpl"}
the variables {$link_main}, {$link_login} are not included
i put the {assign var=link_main value="index.php"} in home.tpl and it works but not from included file
i have tried adding scope=global to variable and parent to include but nothing happened
I tried the last few hours finding a solution, any help is appreciated