2014-09-17 2 views
-2

presta에서 smarty로 html을 형성하는 데이터를 검색하는 방법은 무엇입니까?smarty로 html을 형성하는 데이터 검색 방법은 무엇입니까?

<input type="file" id="image" value="{$image}" /> 
을 다음과 같이

감사

<form action="" method="post"> 
     <input type="file" id="image"/> 
     <button type="submit"/> 
    </form> 
+0

당신은 무엇을 하려는지 더 자세히 설명해 주실 수 있습니까? – lxg

답변

1

당신은 지금

$smarty->assign('image',$imagename); 

당신이 HTML에 할당 된 변수에 액세스 할 수 있습니다 첫 번째 구문에서 다음을 사용하여 PHP에서 변수를 지정해야합니다

prestashop go에서 throu를 사용하여 루프와 다른 엔티티를 사용하는 방법에 대한 자세한 내용은 ght 그의 URL : http://doc.prestashop.com/display/PS15/Theme+templates+and+Smarty

관련 문제