View Helpers have some initial helpers, such as formButton and formText.
As the reference said:
formText($name, $value, $attribs): Creates an <input type="text" />
element.
But I find something not like it on my PC. I write below code in a view file:
<?php
echo $this->formText('email', 'you@example.com', array('size' => 32));
?>
The HTML is as below:
<input type="text" name="email" id="email" value="you@example.com" size="32">
There isn't a '/' at the end.It should be :
<input type="text" name="email" id="email" value="you@example.com" size="32"/>
So is there something wrong? My version is ZF1.12 and PHP5.4.