mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix error in code block for ModelAdmin example
This commit is contained in:
parent
88c59ef0a7
commit
9c9e5c0656
@ -38,7 +38,7 @@ We'll name it `MyAdmin`, but the class name can be anything you want.
|
||||
class MyAdmin extends ModelAdmin {
|
||||
private static $managed_models = array('Product','Category'); // Can manage multiple models
|
||||
private static $url_segment = 'products'; // Linked as /admin/products/
|
||||
private $menu_title = 'My Product Admin';
|
||||
private static $menu_title = 'My Product Admin';
|
||||
}
|
||||
|
||||
This will automatically add a new menu entry to the CMS, and you're ready to go!
|
||||
|
Loading…
Reference in New Issue
Block a user