public function __construct() { $this->table = new \FormKit\Element\Table(); $this->table->addClass('formkit-layout-generic'); $this->body = new Element('tbody'); $this->table->addChild($this->body); parent::__construct(); }
public function __construct($legendText = null) { $this->fieldset = new Fieldset(); $this->fieldset->addClass('formkit-layout-fieldset'); if ($legendText) { $legend = new Legend($legendText); $this->fieldset->addChild($legend); } parent::__construct(); }