PHP code example of cornernote / yii2-dashboard

1. Go to this page and download the library: Download cornernote/yii2-dashboard 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/ */

    

cornernote / yii2-dashboard example snippets



$config = [
    'modules' => [
        'dashboard' => [
            'class' => 'cornernote\dashboard\Module',
            'layouts' => [
                'default' => 'cornernote\dashboard\layouts\DefaultLayout',
                'example' => 'tests\app\dashboard\layouts\ExampleLayout',
            ],
			'updateRoles' => ['dashboardAdmin'],
            'panels' => [
                'example' => [
					'class' => 'app\dashboard\panels\ExamplePanel',
					'allowRules => ['exampleRule'],	
				],
            ],
            'dashboards' => [
                'dashboard first' => [
					'viewRoles => ['firstRule'],	
				],
            ],
        ],
    ],
];