tohokuaikiのチラシの裏

技術的ネタとか。

2009-05-25から1日間の記事一覧

Smartyでは配列のキーにハイフン(-)が入っているとアクセスできない・・・

php

マジですか!なんかハマってしまった。要するに assign('app', array ( 'hoge-uki' => 123456, )); $smarty->display('smarty_test.html'); で、 smarty_test.htmlに {$app.hoge-uki|intval} ってしても、0って出るんです。google: smarty 配列 キー ハイフ…