2011-04-29 3 views
1

내가 아약스 기능을내 스마티 템플릿

SmartyCompilerException: Syntax Error in template "themes/themename/ajax-product-sort.tpl" on line 16 "<option value="{$link->addSortDetails($request, 'price', 'asc')|escape:'htmlall':'UTF-8'}" {if $orderby eq 'price' AND $orderway eq 'ASC' }selected="selected"{/if>l} {s='price: lowest first'}</option>" - Unexpected " }" in D:\wamp\www\sitename\tools\smarty\sysplugins\smarty_internal_templatecompilerbase.php on line 431 

를 호출하고 난 특정 라인

<option value="{$link->addSortDetails($request, 'price', 'asc')|escape:'htmlall':'UTF-8'}" {if $orderby eq 'price' AND $orderway eq 'ASC' }selected="selected"{/if}>{l s='price: lowest first'}</option> 

답변

0

에 구문의 실수를 발견 모시 때 다음과 같은 오류를 받고 오전에 표시된 구문 오류를 찾을 수 없습니다 현명하게도 "->"가 아닌 "."을 사용하여 객체와 배열을 처리합니다.

그래서 나는 시도 할 것이다

{$link.addSortDetails($request, 'price', 'asc')|escape:'htmlall':'UTF-8'} 
관련 문제