Reputation: 2107
I wanted following output from Zend_Form please help
<form ...>
<div class="labels"><b>Name:</b></div>
<input type="text" value="" name="name" class="whitelabelform"><br>
<div class="labels"><b>Email:</b></div>
<input type="text" value="" name="email" class="whitelabelform"><br>
<div class="labels"><b>Security code:</b></div>
<div id="recaptcha_cs_fix">
<script type="text/javascript" src="http://src"></script></div>
<div id="submitbtn"><input type="image" alt="Submit Button" src="submit_button.png">
<input type="hidden" value="true" name="submitted"></div>
</form>
Upvotes: 0
Views: 134
Reputation: 4518
You can have a form class which your elements are created there and call it in the php (zend view / .phtml file) using something like:
<?php echo $this->form->myformelement; ?>
provided that your controller also assigns the form created to the variable named "form".
Upvotes: 0
Reputation: 50638
Watch this presentation, and you will manage to get any markup of Zend Form you need:
Leveraging Zend_Form Decorators
Upvotes: 1