我有一个表单元素:
$Form=new Zend_Form;
$Form->setAction($this->view->url(array('controller'=>'auth','action'=>'create'),null,true))
->setMethod('post')
->setAttrib('id','auth-form')
->removeAttrib('enctype');
可以看出我使用 removeAttrib 方法来删除默认的 enctype。但是,当我回显表单时,我仍然得到:
<form id="auth-form" enctype="application/x-www-form-urlencoded" action="/auth/resetpassword2" method="post">