1
votes

I am new to zend framework. I was wondering whether any zend form element for number. I need to convert the below html stuff to zend form.

<input type="number" name="min" id="min" min="0" max="45" value="0" size="2" step="5" maxlength="2"/>

How can I convert the above html code to zend form?

Thanks.

Update

I have searched in the internet and found some resources

link

But I didn't understand the usage.

        $test=new Zend_Form_Element_Number('test');

Does the above usage is correct? I am getting the below error while using the above code

Fatal error: Class 'Zend_Form_Element_Number' not found

(I am getting down votes, that is why I updated this)

1
which version of zendframework are you using? - Nandakumar V

1 Answers

1
votes

From the code you have given it seems you are using ZF 1.x. But the link you have given is for ZF 2.x. HTML5 Elements elements are available only from ZF 2.0