diff -r 000000000000 -r 4eba9c11703f web/Zend/View/Helper/FormReset.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/Zend/View/Helper/FormReset.php Mon Dec 13 18:29:26 2010 +0100 @@ -0,0 +1,88 @@ +_getInfo($name, $value, $attribs); + extract($info); // name, value, attribs, options, listsep, disable + + // check if disabled + $disabled = ''; + if ($disable) { + $disabled = ' disabled="disabled"'; + } + + // get closing tag + $endTag = '>'; + if ($this->view->doctype()->isXhtml()) { + $endTag = ' />'; + } + + // Render button + $xhtml = 'view->escape($value) . '"'; + } + + // add attributes, close, and return + $xhtml .= $this->_htmlAttribs($attribs) . $endTag; + return $xhtml; + } +}