Home > Article > PHP Framework > TP6 Driver [Think] not supported solution
When I was working on the project this morning, I quoted the thinkPHP6.0.5 framework. When referencing the view, this problem occurred:
Then check the official The manual explains it this way:
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
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!