本书未发布
字段:主键 Key
文档尚未来得及翻译,欢迎以改进的方式提交译文。
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.
推荐文章: