Smarty에서이 기능이 작동하지 않는 이유는 무엇입니까?Smarty에서 두 개의 문자열을 결합하는 방법은 무엇입니까?
{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