Использую шаблон yii2 basic.
Хотел заменить стандартный layout https://github.com/yiisoft/yii2-twig/bl ... widgets.md
Код: Выделить всё
{{ register_asset_bundle('assets/AppAsset') }}
{{ void(this.beginPage()) }}
<!DOCTYPE html>
<html lang="{{ app.language }}">
<head>
<meta charset="{{ app.charset }}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ html.encode(this.title) }}</title>
{{ html.csrfMetaTags | raw }}
{{ void(this.head) }}
</head>
<body>
{{ void(this.beginBody()) }}
<section id="header">
{# header content #}
</section>
{{ content | raw}}
<footer class="footer">
<div class="container">
{# footer content #}
</div>
</footer>
{{ void(this.endBody()) }}
</body>
</html>
{{ void(this.endPage()) }}
получаю ошыбку
Не понимаю почему не может найти классAn exception has been thrown during the rendering of a template ("call_user_func_array() expects parameter 1 to be a valid callback, class 'assets\AppAsset.php' not found").
↵
Caused by: yii\base\ErrorException
call_user_func_array() expects parameter 1 to be a valid callback, class 'assets\AppAsset.php' not found
in D:\OpenServer\domains\yii2-app-basic\vendor\yiisoft\yii2-twig\Extension.php at line 223