【tp6】Driver [Think] not supported 控制器->視圖

tp6 進(jìn)來就遇到這個(gè)問題? :Driver [Think] not supported

解決辦法,composer運(yùn)行:??

composer require topthink/think-view

D:\WWW\wanshuo>composer require topthink/think-view

Using version ^1.0 for topthink/think-view

./composer.json has been updated

Loading composer repositories with package information

Updating dependencies (including require-dev)

Package operations: 2 installs, 0 updates, 0 removals

? - Installing topthink/think-template (v2.0.7): Downloading (100%)

? - Installing topthink/think-view (v1.0.13): Downloading (100%)

Writing lock file

Generating autoload files

> @php think service:discover

Succeed!

> @php think vendor:publish

File D:\WWW\wanshuo\config\trace.php exist!

Succeed!

然后就可以了

發(fā)現(xiàn)路徑為


至此,控制器 ->? 視圖就通了


如果要吧view 放在項(xiàng)目文件頂層

config? -> view ->? ? ? "view_path"? =>? "../view/",


最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容