From 71a2ef13501cc9344875d739c67eabb8eb074c8a Mon Sep 17 00:00:00 2001 From: Liam Whittle Date: Tue, 29 Sep 2015 18:51:08 -0400 Subject: [PATCH] fixed minor GridField initialization syntax. --- .../en/02_Developer_Guides/03_Forms/Field_types/04_GridField.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/02_Developer_Guides/03_Forms/Field_types/04_GridField.md b/docs/en/02_Developer_Guides/03_Forms/Field_types/04_GridField.md index 377526c14..c16718fb1 100644 --- a/docs/en/02_Developer_Guides/03_Forms/Field_types/04_GridField.md +++ b/docs/en/02_Developer_Guides/03_Forms/Field_types/04_GridField.md @@ -67,7 +67,7 @@ the `getConfig()` method on `GridField`. $fields = parent::getCMSFields(); $fields->addFieldToTab('Root.Pages', - $grid = GridField('Pages', 'All pages', SiteTree::get()) + $grid = new GridField('Pages', 'All pages', SiteTree::get()) ); // GridField configuration