国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

ThinkOrm 錯誤

siwei

問題描述

大咖們,請幫忙排錯!
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

操作系統(tǒng)及workerman/webman等框架組件具體版本

Workerman version:4.1.8 PHP version:8.0.2

1177 2 0
2個回答

稚出

按文檔來裝

  • siwei 2023-03-09

    一切按照 這個安裝的 http://www.wtbis.cn/a/1355

  • siwei 2023-03-09

    請問哪位大咖的大作是完全按照ThinkOrm+ThinkCache+think-template+ redis,原生態(tài)來的,我參考一下

  • yongdao35 2023-03-09

    按照手冊用composer安裝就行了

    創(chuàng)建項目

    composer create-project workerman/webman

    進入 webman目錄執(zhí)行

    composer -W require psr/container ^1.1.1 webman/think-orm  webman/think-cache topthink/think-template

    修改配置config/view.php為

    <?php
    use support\view\ThinkPHP;
    return [
        'handler' => ThinkPHP::class,
    ];

    數(shù)據(jù)庫和cache 配置文件分別在 config/thinkorm.php config/thinkcache.php

ichynul

年代過于久遠,無法發(fā)表回答
??