Esempio n. 1
0
 public function __construct(array $form)
 {
     parent::__construct($form);
     $this->setModel('Clumsy\\FormBuilder\\Models\\ClumsyFormStructure');
     $this->setResource(Config::get('clumsy/form-builder::resource'));
     $this->initializeForms();
 }
Esempio n. 2
0
 public function __construct(array $section)
 {
     parent::__construct($section);
     extract($section);
     if (!isset($model)) {
         throw new FormBuilderException("A model must be provided");
     }
     $this->setModel($model);
     $this->setResource($model);
     $this->initializeForms($forms);
 }