1
저는 긴 하나의 페이지 폼을 프로젝트 라이프 사이클의 나중에 다중 페이지 폼으로 분할 될 것으로 예상하여 하위 폼으로 분리했습니다. 아래의 동일한 유효성 검사기에서 토큰 var에 문제가 있습니다. Application_Form 객체에서 다른 서브 폼에서 동일한 값을 사용하여 유효성 검사
는 :$authorizedIndividual = new Zend_Form_SubForm();
// .. authorizedName text element setup here
$termsAgree = new Zend_Form_SubForm();
// Add termsAgree
$termsAgree->addElement('text', 'termsAgree', array(
'label' => 'By typing your name in the preceding field, you, as the authorized individual agree to etc. etc. etc.',
'class' => 'termsAgree',
'required' => true,
'filters' => array('StringTrim'),
'validators' => array(
array('validator' => 'Identical', true, $authorizedIndividual->authorizedName)
)
));