silverstripe Forms

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9

Syntax

  • Form::create($this, __FUNCTION__, $fields, $actions, $validator) // standard form creation
  • Form::create(...)->addExtraClass('my-css-class another-class') // add CSS classes to your Form
  • Form::create(...)->loadDataFrom(Member::get()->byID(1)); // populate a form with the details of an object


Got any silverstripe Question?