mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #851 from Juanitou/patch-2
Update docs/en/reference/dataextension.md
This commit is contained in:
commit
62adea5882
@ -27,7 +27,7 @@ class you want to extend.
|
|||||||
### Adding a extension to a built-in class
|
### Adding a extension to a built-in class
|
||||||
|
|
||||||
Sometimes you will want to add extension to classes that you didn't make. For example, you might want to add the
|
Sometimes you will want to add extension to classes that you didn't make. For example, you might want to add the
|
||||||
`[api:ForumRole]` extension to the `[api:Member]` object.
|
ForumRole extension to the `[api:Member]` object.
|
||||||
|
|
||||||
|
|
||||||
:::php
|
:::php
|
||||||
@ -38,7 +38,7 @@ For example above we want to override Member with a Custom Member so we would wr
|
|||||||
|
|
||||||
:::php
|
:::php
|
||||||
// add to mysite/_config.php
|
// add to mysite/_config.php
|
||||||
Object::add_extension('Member', 'CustomMember');</code>
|
Object::add_extension('Member', 'CustomMember');
|
||||||
|
|
||||||
## Implementation
|
## Implementation
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user