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

應(yīng)用插件如何使用框架路由

七彩楓葉

問題描述

我準(zhǔn)備開發(fā)一個cms應(yīng)用插件,想要實現(xiàn) http://domain/ 就能訪問到這個cms的首頁

我的想法是在config/route.php中,直接添加路由

<?php
use Webman\Route;
// 引用 route 中的路由文件
foreach (glob(base_path() . '/route/*.php') as $filename) {
    include_once $filename;
}
//Route::any('/', [app\controller\IndexController::class, 'index']);
Route::any('/', [plugin\cms\app\controller::class, 'index']);

// 關(guān)閉默認(rèn)路由
//Route::disableDefaultRoute();

但是提示
Route / ["plugin\cms\app\controller","index"] is not callable
應(yīng)該如何設(shè)置才能
domain/app/cms 隱藏 掉 app/cms 實現(xiàn)通過domain/訪問到app/cms 的index內(nèi)容

845 1 0
1個回答

Tinywan

這種最好使用Nginx代理

  • 暫無評論
年代過于久遠(yuǎn),無法發(fā)表回答
??