而後運行項目 就搞定了。 是否是美滋滋!php
在public 下index.php添加的代碼以下:ui
//這是build.php裏面的模板 'admin' => [ '__file__' => ['common.php'], '__dir__' => ['behavior','controller','model','veiw','lang'], 'controller' => ['Admin'], 'model' => ['Test'], 'view' => ['index/Index'], ], //這是index.php下添加的代碼 $build = include '../build.php'; //運行自動生成 \think\Build::run($build);
SEE YOU ARGIN!blog