PHP code example of littlegiant / silverstripe-singleobjectadmin

1. Go to this page and download the library: Download littlegiant/silverstripe-singleobjectadmin library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

littlegiant / silverstripe-singleobjectadmin example snippets


use LittleGiant\SingleObjectAdmin\SingleObjectAdmin;

class ProductSettingsAdmin extends SingleObjectAdmin
{
    private static $menu_title = "Product Settings";
    private static $tree_class = 'ProductSettings';
    private static $url_segment = "product-settings";

}