Smarty リクエスト変数
server、get、post、cookies、env、request、session
Smarty
{* SERVER *}
{foreach $smarty.server as $arrKey => $arrVal}
{$arrKey} : {$arrVal}
{/foreach}
{$smarty.server|debug_print_var}
{* アクセス時に指定されたURI *}
{$smarty.server.REQUEST_URI}
{* ユーザエージェント *}
{$smarty.server.HTTP_USER_AGENT}
{* IPアドレス *}
{$smarty.server.REMOTE_ADDR}
{* リファラ *}
{$smarty.server.HTTP_REFERER}
{* GET *}
{if isset($smarty.get)}
{foreach $smarty.get as $arrKey => $arrVal}
{$arrKey} : {$arrVal}
{/foreach}
{/if}
{* POST *}
{if isset($smarty.post)}
{foreach $smarty.post as $arrKey => $arrVal}
{$arrKey} : {$arrVal}
{/foreach}
{/if}
{* COOKIES *}
{if isset($smarty.cookies)}
{foreach $smarty.cookies as $arrKey => $arrVal}
{$arrKey} : {$arrVal}
{/foreach}
{/if}
{* ENV *}
{foreach $smarty.env as $arrKey => $arrVal}
{$arrKey} : {$arrVal}
{/foreach}
{* REQUEST *}
{if isset($smarty.request)}
{foreach $smarty.request as $arrKey => $arrVal}
{$arrKey} : {$arrVal}
{/foreach}
{/if}
{* SESSION *}
{if isset($smarty.session)}
{foreach $smarty.session as $arrKey => $arrVal}
{$arrKey} : {$arrVal}
{/foreach}
{/if}