<?php// +----------------------------------------------------------------------// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]// +----------------------------------------------------------------------// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.// +----------------------------------------------------------------------// | Author: Dean <zxxjjforever@163.com>// +----------------------------------------------------------------------namespaceplugins\demo\controller;//Demo插件英文名,改成你的插件英文就行了usecmf\controller\PluginRestBaseController;useplugins\Demo\Model\PluginDemoModel;usethink\Db;classApiIndexControllerextendsPluginRestBaseController{publicfunctionindex(){$this->success('success',['hello'=>'hello ThinkCMF!']);}}