Derek Jones edited this page Jul 5, 2012 · 4 revisions
Clone this wiki locally


The $fields array holds the configuration information for all the database fields. It is stored for performance reasons, instead of being looked up from the database meta-information.

When SuperModel initializes, it actually turns the fields array into an object structure.

Each field has a number of options, and some are common to all fields:

$type - Determines the control type and some other behaviour for the field. See SuperModel::Types for more information and detailed options for each type.

$label - The label to show when presenting the option.

$store - A boolean value indicating if the value is stored in the database or not. By default, if it is not explicitly specified, only the following types are stored: 'text','input','password','textarea','select','dropdown','checkbox','radio','hidden','serverside'.