Class 'org\Wechat' not found
<?php
namespace app\admin\Controller;
use org\Wechat;
use think\Loader;
class Index
{
public function index()
{
$options = array('token'=>'tokenaccesskey');
$weObj = new Wechat($options);
$weObj->valid();
}
}
类目录放在了控制器下面的extend\org\wechat.class.php 文件也写了namespace org;
为什么还是报错啊;
主要是这段报错 $weObj = new Wechat($options);
在线等
最佳答案