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.
我添加了一个 line 类型的字段来形成。它创建了一个字段,该字段内是带有标签输入的字段。如何设置该输入类?
$form->addField('line','input')->setAttr('class','myclass');
应该这样做。