Update 11_Scaffolding.md

This commit is contained in:
Manuel Thalmann 2021-05-14 15:17:50 +02:00 committed by GitHub
parent 0a7570dd96
commit ff7654db1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;