How to trigger fieldset factory in ZF3
问题 I need to use factory for fieldset. I know how to do it for form, but how to do it for fieldset? The form code is: namespace Application\Form; use Application\Fieldset\Outline; use Zend\Form\Element; use Zend\Form\Form; class Message extends Form { public function __construct() { parent::__construct('message'); $this->setAttribute('method', 'post'); $this->add([ 'type' => Outline::class, 'options' => [ 'use_as_base_fieldset' => true, ], ]); $this->add([ 'name' => 'submit', 'attributes' => [