Hello,all.I have generated an app called london and in the assets directory,i have AppAsset.php which looks like this
<?php
namespace app\assets;
use yii\web\AssetBundle;
class AppAsset extends AssetBundle
{
public $basePath = '@webroot';
public $baseUrl = '@web';
public $css = [
'css/app.css',
];
public $js = [
'js/app.js',
];
public $depends = [
'yii\web\YiiAsset',
'yii\bootstrap\BootstrapAsset',
];
}
?>
I have then gone under my views site directory and created this view
<?php
use yii\helpers\Html;
use app\assets\AppAsset;
AppAsset::register($this);
?>
<h1 class="lead">Hello <?= $droid ?></h1>
<p>Welcome to your Yii2 demonstration application.</p>
and when i run the controller that renders the view,it gives me
Can someone guide me on how to make my asset bundle work.