2014-11-13 2 views
2

smarty를 사용하여 this tpl 파일을 컴파일하려고했습니다. 내 PHP 파일은 this입니다. 하지만 오류 메시지가 표시됩니다.smarty를 사용하여 product.tpl을 컴파일하는 중 오류가 발생했습니다.

(!) Fatal error: Uncaught --> Smarty Compiler: Syntax error in template ".\templates\product.tpl" on line 94 "var doesntExist = '{l s='This combination does not exist for this product. Please choose another.' js=1}';" unknown tag "l" <-- thrown in C:\wamp\www\Smarty\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 94

누구든지이 오류를 해결하는 방법을 알려주십시오.

답변

1

문제가 나타납니다 :

var doesntExist = '{l s='This combination does not exist for this product. Please choose another.' js=1}'; 

문제는 여기 l 무엇이다 - 스마티 기능이다? 그렇다면 제대로로드되지 않은 것으로 나타나며 어떤 이유로 일반 텍스트 여야하는 경우 {literal}에 넣으십시오.

관련 문제