Skip to content
This repository
Browse code

Update extend cms docs to include 3.0 API change.

  • Loading branch information...
commit aa76aca10dcaf626a04d4c62e826ef0a1d5f3a81 1 parent bf91594
Will Rossiter authored July 15, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  docs/en/howto/extend-cms-interface.md
4  docs/en/howto/extend-cms-interface.md
Source Rendered
@@ -85,9 +85,9 @@ Create a new file called `zzz_admin/code/BookmarkedPageExtension.php` and insert
85 85
 	:::php
86 86
 	<?php
87 87
 	class BookmarkedPageExtension extends DataExtension {
88  
-		static $db = array('IsBookmarked' => 'Boolean');
  88
+		public static $db = array('IsBookmarked' => 'Boolean');
89 89
 		
90  
-		public function updateCMSFields(&$fields) {
  90
+		public function updateCMSFields(FieldList $fields) {
91 91
 			$fields->addFieldToTab('Root.Main',
92 92
 				new CheckboxField('IsBookmarked', "Show in CMS bookmarks?")
93 93
 			);

0 notes on commit aa76aca

Please sign in to comment.
Something went wrong with that request. Please try again.