Smarty から PHPへの変数受け渡し
- Category:
- PHP
前回の続き
$this->_tpl_vars[Smartyでの変数名] でPHPのほうへ渡せるようです
こんな風に
{foreach from=$action.tags|smarty:nodefaults item=tag}
{php}print urlencode($this->_tpl_vars['tag']);{/php}
{/foreach}
前回の続き
$this->_tpl_vars[Smartyでの変数名] でPHPのほうへ渡せるようです
こんな風に
{foreach from=$action.tags|smarty:nodefaults item=tag}
{php}print urlencode($this->_tpl_vars['tag']);{/php}
{/foreach}
コメントを表示する前に、管理人の承認が必要になることがあります。その場合は、承認されるまでコメントは表示されませんので、ご了承ください。