PHP code example of weison-tech / yii2-layer

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

    

weison-tech / yii2-layer example snippets


php composer.phar 
`


namespace app\assets; 
  
use yii\web\AssetBundle;
  
class AppAsset extends AssetBundle
{
    ...
    public $depends = [
        ...
        'weison\alert\LayerAsset', // Import layer alert's js and css
        ...
    ];
    ...
}