大咖们,请帮忙排错!
https://www.bilibili.com/video/BV1Wu41117Xt/?p=3&spm_id_from=pageDriver&vd_source=3027986b738a23caaa16eaaa82e4c41b
按照这个视频,安装了
bootstrap.php
return [
support\bootstrap\Session::class,
support\bootstrap\ThinkOrm::class,
// support\bootstrap\LaravelDb::class,
Webman\ThinkCache\ThinkCache::class,
Webman\ThinkOrm\ThinkOrm::class,
];
===============================
IndexController.php
public function index(Request $request)
{
$art= new Article();
$list=$art->select();
dump($list)
View::assign('list',$list);
return view('index/index');
}
在控制台 报错如下:
------------------------ WORKERS -------------------------------
worker listen processes status
webman http://0.0.0.0:8787 4 [ok]
Warning: Class support\bootstrap\ThinkOrm setting in config/bootstrap.php not found
monitor none 1 [ok]
Warning: Class support\bootstrap\ThinkOrm setting in config/bootstrap.php not found
Workerman version:4.1.8 PHP version:8.0.2
按文档来装
一切按照 这个安装的 https://www.workerman.net/a/1355
请问哪位大咖的大作是完全按照ThinkOrm+ThinkCache+think-template+ redis,原生态来的,我参考一下
按照手册用composer安装就行了
创建项目
进入 webman目录执行
修改配置config/view.php为
数据库和cache 配置文件分别在 config/thinkorm.php config/thinkcache.php
果然不错