Is there any easy way to get HTML5 Form elements into a Zend Form? createElement(‘tel’,’phone’); just doesn’t work because zend doesn’t support html5 form elements yet it seems… you can’t override the type attribute either after it’s been created.
E.G. I need input type=”tel/email/date/number” etc on my zend form.
Nevermind, I found this article: http://www.enrise.com/2010/12/html5-zend-framework-form-elements/. I just had to copy his code into my MVC architecture and it works now. Except I had to put $this->setAttrib(‘type’,’number’) for example in Number.php, because it doesn’t add the option unless its set in the controller, which is a bit stupid because I was creating a new Glitch_Form_Element_Text_Number or whatever o_O.