Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fuel form : build fields
<?php
class Form extends \Fuel\Core\Form {
public function field_template_public($build_field, \Fuel\Core\Fieldset_Field $field, $required) {
return parent::field_template($build_field, $field, $required);
}
public function build_field($field) {
if (substr(strtolower(\Inflector::denamespace(get_class($field))), 0, 6) == 'widget') {
// Widgets build themselves
return $field->build();
}
return parent::build_field($field);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.