im 使用 CRUD 生成模块模板。在配置文件 web.php 上激活模块。
'admin' => [
'class' => 'app'modules'admin'AdminModule',
],
之后无法访问: http://blog/web/index.php?r=admin
我已经解决了这个问题。我在模块$config froperty web.php 文件上添加了模块激活码。
$config = [
'id' => 'basic',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
'modules' => [
'admin' => [
'class' => 'app'modules'admin'admin',
],
],