Comments (2)
请问你的项目是什么tp版本?5.0还是5.1?
还有,apps配置中的path
,指该应用的目录,并不是命名空间,所以你的path应该是
['title'=>'API 接口','path'=>'application\maintain\home\api','folder'=>'api'],
from thinkphp-apidoc.
感谢回复
TP5.1 版本
目前 path 已修改为 :application\maintain\home\api
但出现 ParseAnnotation.php 文件 395 行出现 报错:类型错误: substr() expects parameter 1 to be string, bool given
原因是默认控制 $this->controller_layer 默认配置是 controller ,添加 route.php 配置文件并添加 controller_layer 配置解决,再次感谢
from thinkphp-apidoc.
Related Issues (20)
- composer require hg/apidoc 安装不了提示没有包是为什么 HOT 1
- 作者可否有计划兼容webman框架呢? HOT 4
- 代码之前带有注释会解析错误 HOT 3
- 同一个控制器下,进行方法分类 HOT 1
- 关于tp6路由注解导致路径自动解析问题 HOT 1
- 上线后如何关闭api文档 HOT 1
- tp5.1使用bug HOT 1
- 报错了 tp6 加了https就报错了 HOT 1
- 控制器开启后缀配置,接口生成请求url错误,带着contrller HOT 1
- 可否支持restful风格自动生成呢? HOT 2
- ref里面再使用refmd解析不出来,不会显示查看按钮 HOT 3
- 本地composer安装好 输入/apidoc访问报错 HOT 5
- 看报错信息像是请求的地址与你的项目地址不一致,请检查前端配置文件`/apidoc/config.js`中的HTTP.HOSTS配置是否配置正确,可参考文档[https://hg-code.gitee.io/thinkphp-apidoc/config/page/#http-hosts](https://hg-code.gitee.io/thinkphp-apidoc/config/page/#http-hosts)如果是当前站点,可清空HOSTS配置
- 请问下 响应结果里面的code message 如何编辑 HOT 1
- setGlobalHeader 当value=undefined时照样会设置值
- 方法不存在: hg\apidoc\Controller::getApidoc()
- We're sorry but apidoc doesn't work properly without JavaScript enabled. Please enable it to continue.
- 这个错在怎么解决
- markdown 可以中英文切换吗
- 为什么ref上多语言失效了 字段描述
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thinkphp-apidoc.