mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update 11_Scaffolding.md
This commit is contained in:
parent
0a7570dd96
commit
ff7654db1f
@ -7,7 +7,7 @@ icon: hammer
|
||||
# Scaffolding
|
||||
|
||||
The ORM already has a lot of information about the data represented by a `DataObject` through its `$db` property, so
|
||||
SilverStripe will use that information to provide scaffold some interfaces. This is done though [FormScaffolder](api:SilverStripe\Forms\FormScaffolder)
|
||||
SilverStripe will use that information to provide scaffold for some interfaces. This is done though [FormScaffolder](api:SilverStripe\Forms\FormScaffolder)
|
||||
to provide reasonable defaults based on the property type (e.g. a checkbox field for booleans). You can then further
|
||||
customise those fields as required.
|
||||
|
||||
@ -232,7 +232,7 @@ class MyDataObject extends DataObject
|
||||
|
||||
```
|
||||
|
||||
In order to re-label any summary fields, you can use the $field_labels static.
|
||||
In order to re-label any summary fields, you can use the `$field_labels` static.
|
||||
|
||||
```php
|
||||
use SilverStripe\ORM\DataObject;
|
||||
|
Loading…
Reference in New Issue
Block a user