mirror of
https://github.com/silverstripe/silverstripe-tagfield
synced 2024-10-22 09:05:32 +00:00
Update README.md
This commit is contained in:
parent
a5043123ce
commit
b6560b83bf
@ -59,7 +59,7 @@ class BlogPost extends DataObject {
|
||||
|
||||
```php
|
||||
$field = StringTagField::create(
|
||||
'Tags', 'Tags', array('one', 'two'), explode(',', this->Tags)
|
||||
'Tags', 'Tags', array('one', 'two'), explode(',', $this->Tags)
|
||||
);
|
||||
|
||||
$field->setShouldLazyLoad(true); // tags should be lazy loaded
|
||||
|
Loading…
x
Reference in New Issue
Block a user