I'm trying to use this tutorial for using Material Ripple in my yii2 advanced app.
And in the Test.html
buttons and effects and ripples is working, but in my Yii2
app the library is without any ripple effect.
this is my css's and other files:
Material Asset:
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace frontend\assets;
use yii\web\AssetBundle;
/**
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class MaterialAsset extends AssetBundle
{
public $sourcePath = '@themes/material';
public $baseUrl = '@web';
public $css = [
'css/material.min.css',
'css/material-fullpalette.min.css',
'css/ripples.min.css',
'css/roboto.min.css',
'css/site.css'
];
public $js = [
'js/material.min.js',
'js/ripples.min.js',
];
public $depends = [
'yii\web\YiiAsset',
'yii\bootstrap\BootstrapAsset',
];
}
How to solve this issue?