I'm using the Form Helper in Lithium and wonder how to add the HTML attributes class and id to the output of $this->form->create();? I want to set these attributes on the form element.
How to add class and id attributes to lithium form helper?
180 views Asked by lorem monkey At
1
As intuitive as
$this->form->create(null, ['class' => 'foo', 'id' => 'bar'])NB: replace
nullwith$somethingif you are binding an object to the form.