2
In Smarty 3, the tags are no longer supported. Instead, you need to use Smarty's built-in functions and modifiers to accomplish tasks that previously required PHP code.
If you need both $cid and $catid, then you can use Smarty's $smarty.template_vars variable to access the template variable value instead of get_template_vars():
{assign var="cid" value=$downloads.cid}
{assign var="catid" value=$smarty.template_vars.cid}
The $smarty.template_vars variable contains all assigned template variables and their values. So you can access the value of $cid through $smarty.template_vars.cid in place of the PHP code.
This allows you to eliminate tags and leverage Smarty's features and syntax to access template variables and perform other logic in the template.
Let us know if this worked