Show attribute in bootstrap edit form

Submitted by herent - 3 years ago

When you are working with attributes in edit forms, this gives you a nice way to output the markup for bootstrap.

$af = Loader::helper('form/attribute');
$ak = AttributeKey::getByHandle('my_attribute');
// arguments = display($key, $required = false, $includeLabel = true, $template = 'composer') {
$af->display($ak, true);
Stats Categories Tags
comments powered by Disqus