Home >Backend Development >PHP Tutorial >thinkphp uses overtrue/wechat to load autoload.SegmentFault
Excuse me, overtrue/wechat 3.1. After thinkphp is installed with composer, how to introduce the autoload.php under the vendor? I tried it in the entry file but it didn’t work. If I use require, an error will be reported. When I use include to introduce it in the public function, it is still Class 'OvertrueWechatServer. ' not found, please give detailed answers from those who have used it, thank you very much
Excuse me, overtrue/wechat 3.1. After thinkphp is installed with composer, how to introduce the autoload.php under the vendor? I tried it in the entry file but it didn’t work. If I use require, an error will be reported. When I use include to introduce it in the public function, it is still Class 'OvertrueWechatServer. ' not found, please give detailed answers from those who have used it, thank you very much
<code class="php"> // 引入composer require(__DIR__ . '/vendor/autoload.php'); // 引入ThinkPHP入口文件 require './ThinkPHP/ThinkPHP.php'; // 亲^_^ 后面不需要任何代码了 就是如此简单 </code>