I am using Zend-Framework in my project. I made a login form using the Zend Form that contains the User Id and Passwords fields with a submit button. Everything is working fine in the login form.
How do I add two hyperlinks inside the login form that is one for the Sign-Up and other for the Forget Password?
For only decorators use directly in the form try:
You can use Zend_Form_Decorator_ViewScript
Or, create a custom Zend_Form_Element to render HTML elements or ViewScript.
I've faced the same problem before, and solved it by creating a custom Zend_Form_Element_Html, as follows:
So, in your form you just have to do the following:
Hope this helps!
In your viewscript file where you print the form, e.g.
login.phtml
you can specify any other html markup, e.g. links
So you actually do not write it in the form itself but in the view script where you echo the form.
Try this:
Description decorator will add this text beside your field.