PHP code example of raoul2000 / yii2-bootswatch-asset
1. Go to this page and download the library: Download raoul2000/yii2-bootswatch-asset 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/ */
raoul2000 / yii2-bootswatch-asset example snippets
// ./assets/AppAsset.php
class AppAsset extends AssetBundle
{
public $basePath = '@webroot';
public $baseUrl = '@web';
public $css = [
'css/site.css',
];
public $js = [
];
public $depends = [
'yii\web\YiiAsset',
'raoul2000\bootswatch\BootswatchAsset',
];
}
// ./views/layouts/main.php
raoul2000\bootswatch\BootswatchAsset::$theme = 'cosmo';
AppAsset::register($this);
php composer.phar