このような Zend_Form:
class Application_Form_Registration extends Zend_Form
{
public function init()
{
/* Form Elements & Other Definitions Here ... */
$$this->setMethod('post');
//first name
$this->addElement('text', 'email', array(
'label' => 'First name',
'required' => true,
'filters' => array('StringTrim'),
));
//last name
$this->addElement('text', 'lastname', array(
'label' => 'Last name',
'required' => true,
'filters' => array('StringTrim')
));
$this->addElement('submit', 'submit', array(
'ignore' => true,
'label' => 'Submit'
));
$this->addElement('hash', 'csrf', array(
'ignore' => true,
));
}
}
ZF1 1.12 API とリファレンス ドキュメントを読みましたが、Zend_Form::addElement() 構成オプションの「無視」フラグの意味がわかりません。
確かに私はそれをグーグルで見つけて見つけましたが、これはうまくいく方法ではありません。特定の特定のものの意味を見つける方法. ソースコードを読む必要はないと思いますか?
これaddElement()
を例として取り上げてください。さらに調べる場所がありませんか?Zend_Configignore
クラスには、フラグについても何も見つかりません。