Home  >  Article  >  PHP Framework  >  TP6 Driver [Think] not supported solution

TP6 Driver [Think] not supported solution

善始善终
善始善终Original
2020-11-11 21:31:415985browse

When I was working on the project this morning, I quoted the thinkPHP6.0.5 framework. When referencing the view, this problem occurred:

TP6 Driver [Think] not supported solution

Then check the official The manual explains it this way:

TP6 Driver [Think] not supported solution

tells us that the new version no longer has a built-in think-template template engine. If you need to use the ThinkPHP official template engine, you need to install the think-view template engine separately. Driver extension.

So enter the root directory of the project and install the think-view template engine driver extension through composer.

composer  require topthink/think-view

TP6 Driver [Think] not supported solution

An error like this occurs: Package topthink/think-view at version has a PHP requirement incompatible with your PHP version (5.6.27)

appears Reason: I installed composer before, and the default version is PHP5.6.27! , and thinkPHP6.0.X requires PHP version 7.1.

Solution: Open D:\phpStudy\PHPTutorial\tools\composer\composer.bat, modify the php path inside to the php version path you want to switch, and then click to execute the bat file.

If it still doesn’t work, then reinstall composer, download address: https://getcomposer.org/download/. Then select the corresponding path and select PHP>=7.1 version.

The above is the detailed content of TP6 Driver [Think] not supported solution. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn