Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Lithium 中使用Form Helperclass,想知道如何将 HTML 属性添加id到$this->form->create();? 我想在form元素上设置这些属性。
class
id
$this->form->create();
form
直观如$this->form->create(null, ['class' => 'foo', 'id' => 'bar'])
$this->form->create(null, ['class' => 'foo', 'id' => 'bar'])
注意:如果您将对象绑定到表单,请null替换为。$something
null
$something