フォームには次のクラスがあります。
class Application_Form_ContactForm extends Zend_Form
{
public function init()
{
$this->setName('contact_us');
/*
I have also used follwing statements (one by one) to set name attribute
// $this->setAttrib('name', 'myForm-name');
// $this->setAttribs(array('name' => 'frm', 'id' => 'frmlogin'));
*/
}
}
このフォームを実行すると、次の html コードが表示されます。
<form id="contact_us" enctype="application/x-www-form-urlencoded" action="" method="post"><dl class="zend_form">
上記の html コードは、form html タグの 'name' 属性を表示しません。
この点について、修正方法を教えてもらえますか。