I am using basic pack of Yii2. I created a module named Admin and I want this module has its own layout. But I don't know where to put all its CSS files. Then, how to include them in layout.php.
My directory structure:
basic
-- module
-- admin
-- controllers
-- DefaultController.php
-- views
-- default
-- layouts
-- main.php
-- css
-- style.css
In main.php, I use this code, but it doesn't work:
<?php $this->registerLinkTag([
'rel' => 'stylesheet',
'href' => 'css/style.css',
]);
$this->head(); ?>