怎么说找不到 Class 'Medoo' not found 异常
安装和开启了,下面的
"require":{
"php":">= 5.3.0",
"filp/whoops":"*",
"symfony/var-dumper":"*",
"catfan/medoo": "^1.4"
},
model 类文件代码,
namespace core\lib;
use core\lib\conf;
use Medoo\Medoo;
//include IMOOC.'/vendor/catfan/medoo/src/Medoo.php';
class model extends \Medoo {
public function __construct(){
echo "11";
$option = conf::all('database');
parent::__construct($option);
}
}
控制器indexCtrl 的代码
namespace app\ctrl;
use \core\lib\model;
class indexCtrl extends \core\imooc {
public function index(){
$model = new model();
dump($model);
}}
database 配置文件部分
'database_type' => 'mysql',
'database_name' => 'test',
'server' => 'localhost',
'username' => 'root',
'password' => 'root',
'charset' => 'utf8'
不知哪有问题 ?