fuel/core — Issue #808: Use views for fieldset form definitions
Author: WanWizard
Created: 2012-02-01 22:55:03+00:00
State: open
Labels: Awaiting feedback, Feature

The fieldset class, in combination with an ORM model, allows you to automatically generate a form for you, based on the definitions in the config/form.php config file.

This works fine, but the forms are pretty basic and not very flexible. You can use set_config() to load alternative definitions, but all forms generated will be based on "one label/field combo per row" as per design of the config and the build method.

I propose a change that allows you to create a complete form template as a view, which will then be used by the build() process to generate the form, giving you total freedom as to how you design it. If no view is presented, the current behaviour will remain unchanged.