Skip to content

Files

Latest commit

 

History

History
23 lines (15 loc) · 868 Bytes

field-type-key.md

File metadata and controls

23 lines (15 loc) · 868 Bytes

Field Type - Key

Usage

The key field type can be used to show the primary key's value. You cannot make this field editable since primary key values are handled internally by your database.

'id' => array(
	'type' => 'key', //optional...Administrator will know when a field is the model's key
	'title' => 'ID',
),

Filter

The key field filter lets you type in the key of an item that you're looking for if you already know it. This is helpful if you're trying to quickly find an item that is referenced somewhere else in your database.