Smartyでこれが動作しないのはなぜですか?Smartyで2つの文字列を結合するには?
{my_function($test.'a1')}
それは次のエラーを示しています:
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "test.tpl" on line 1 "{my_function($test.'a1')}" Unexpected "'a1'", expected one of: "{" , "$" , "identifier" , INTEGER' in...
ありがとうございますが、バックティックを追加しても同じエラーが表示されません... – user861587
smartyの現在のバージョンはv3であり、それはv2のドキュメントです。 –
v3とほぼ同じです:http://www.smarty.net/docs/en/language.syntax.quotes.tpl – grahamrb