2011-07-13 14 views
0

すべてのids、html画像要素、クラス、スパンを含むこの完全なコードをzendフォームに変換したいと思います。すべて。画像を追加したり、divやspanに要素accordintをグループ化することは困難です。 誰かが私を助けることができたら、私は感謝します。ありがとうございました。zendフォームでhtml要素を作成する

<form method="get" action="/search" name="searchForm" id="searchForm"> 
<div class="logo"> 
    <a href="http://trial.com" title="Trial" name="trialLogo"> 
    <img width="205" height="40" alt="Trial Search" src="..image/logo.png"> 
    </a> 
</div> 
<input type="hidden" value="/Listing" name="ref_uri"> 
<div class="inputBlock"> 
    <span class="inputWrapper"><input type="text" class="labelMagic fieldHelpText" tabindex="3" id="what" name="what" autocomplete="off"><input type="hidden" name="listingId"></span> 
</div> 
<div class="inputBlock"> 
    <span class="inputWrapper"><input type="text" autocomplete="off" value="Location" class="labelMagic" tabindex="4" id="where" name="where"><input type="hidden" name="geoId"></span> 
</div> 
<div class="submitWrapper"><button class="goButton" tabindex="5" name="go" type="submit">Go!</button> 
</div> 
</form> 

答えて

0

あなたは確かに、これらすべてのdivおよびスパンの属性の設定を含め、すべてこのラッピングを実行するように構成HtmlTag decoratorsのコレクションを採用することができます。

しかし、フォームにはViewScriptデコレータを使用するほうが簡単でしょう。良い例がこのMWOP Dev Zone articleに表示されます。

関連する問題