Smarty から PHPへの変数受け渡し

投稿者:

前回の続き
$this->_tpl_vars[Smartyでの変数名] でPHPのほうへ渡せるようです
こんな風に
{foreach from=$action.tags|smarty:nodefaults item=tag}
    {php}print urlencode($this->_tpl_vars[‘tag’]);{/php}
{/foreach}

Thank you for reading this post, don't forget to subscribe!