Hello, community members! I would like to ask you this question: In the Yii2 framework, to use css styles and js scripts, you need to set a so-called resource bundle so that the application can use them. And what to do with the images? I do not understand how to access their use ..
This is what is meant by the resource bundle:
class AppAsset extends AssetBundle { public $basePath = '@webroot'; public $baseUrl = '@web'; public $css = [ 'css/site.css', 'css/bootstrap.min.css', 'css/bootstrap-social-gh-pages/bootstrap-social.css', 'css/flexslider.css', 'css/ie10-viewport-bug-workaround.css', 'css/justified-nav.css', 'css/font-awesome-4.6.3/css/font-awesome.css', ]; public $js = [ 'scripts/ie-emulation-modes-warning.js', 'scripts/jquery.flexslider-min.js', 'scripts/modernizr.js', 'https://code.jquery.com/jquery.min.js', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js' ]; public $depends = [ 'yii\web\YiiAsset', 'yii\bootstrap\BootstrapAsset', ]; }