PHP code example of vasadibt / yii2-material-dashboard

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

    

vasadibt / yii2-material-dashboard example snippets


'modules' => [
    // ...
    'gridview' => [
        'class' => '\kartik\grid\Module'
    ],
],

'layoutPath' => '@vendor/vasadibt/yii2-material-dashboard/src/views/layouts',

'components' => [
    // ...
    'view' => [
        // ...
        'theme' => [
            'pathMap' => [
                '@vasadibt/materialdashboard/views' => '@app/views',
            ],
        ],
    ],
],
 

'components' => [
    // ...
    'assetManager' => [
        // ...
        'bundles' => [
            // ...
            'yii\bootstrap\BootstrapAsset' => ['css' => [], 'js' => [], 'depends' => ['vasadibt\materialdashboard\assets\MaterialAsset']],
            'yii\bootstrap\BootstrapPluginAsset' => ['css' => [], 'js' => [], 'depends' => ['vasadibt\materialdashboard\assets\MaterialAsset']],
            'yii\bootstrap4\BootstrapAsset' => ['css' => [], 'js' => [], 'depends' => ['vasadibt\materialdashboard\assets\MaterialAsset']],
            'yii\bootstrap4\BootstrapPluginAsset' => ['css' => [], 'js' => [], 'depends' => ['vasadibt\materialdashboard\assets\MaterialAsset']],
            'kartik\dialog\DialogBootstrapAsset' => ['depends' => ['vasadibt\materialdashboard\assets\MaterialAsset']],
        ],
    ],
],

'components' => [
    // ...
    'material' => [
        'class' => 'vasadibt\materialdashboard\components\Material',
        'appAssetClass' => 'frontend\assets\AppAsset',
    ],
],
bash
php composer.phar