September 2016
Intermediate to advanced
1091 pages
21h 41m
English
The purpose of a form factory is to generate a usable form object from a single configuration array. The form object should have the ability to retrieve the individual elements it contains so that output can be generated.
Application\Form\Factory to contain the factory code. It will have only one property, $elements, with a getter:namespace Application\Form;
class Factory
{
protected $elements;
public function getElements()
{
return $this->elements;
}
// remaining code
}Read now
Unlock full access