Help required regarding Zend_Form
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&开发者_运维技巧gt;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>
Watch this presentation, and you will manage to get any markup of Zend Form you need:
Leveraging Zend_Form Decorators
I won`t code it for you but I can point you to a tutorial about Zend_Form. Its very easy to create what you seek take a look at it.
After you have tried if it doesnt work ask again, posting your code and we will help you fix it.
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".
精彩评论