CmlPHP v2.x 开发手册
项目目录说明 开发指引 配置 normal.php common.php plugin.php route.php 其它配置项 配置的获取 动态修改配置 URL模式 路由 控制器 前置方法 请求、响应 Input Request 1.6.5.3 1.6.5.4 1.6.5.5 1.6.6 1.6.6.1 1.6.6.2 1.6.6.3 1.6.6.4 1.6.6 获取上一次更新影响的行数 数据删除 简单的单字段自增(多字段参考update) 简单的单字段自减(多字段参考update) 聚合操作 事务 调用存储过程 原生/子查询/union 快捷方法 通过某字段值获取数据 添加数据 通过某字段值更新数据 通过字段值删除数据 获取总数 获取列表 1.6.6.15.7 1.6.6.16 1.6.7 1.6.7.1 1.6.8 //必须绑定。路由 //框架自带的路由支持restful分格的路由、路由分组。 在未 声明/未匹配到路由规则时会按url映射到文件的方式来执行相应的控制 器方法。具体参考 http://doc.cmlphp.com/devintro/route/readme.html。 //如果想使用第三方的路由只要简单封装一个服务。实现 \Cml\Interfaces\Route接口即可0 码力 | 245 页 | 720.67 KB | 1 年前3WeRoBot 1.6.0 微信公众号开发框架文档
的默认值为 auto 。 注意 WSGIRef [http://docs.python.org/library/wsgiref.html#module-wsgiref.simple_server] 的性能非常 差, 仅能用于开发环境。 如果你要在生产环境下部署 WeRoBot , 请确保你 在使用其他 server 。 通过 WSGI HTTP Server 运行 WeRoBot werobot werobot.wsgi 暴露了一个 WSGI Application ,你可以使用任何你喜欢的 WSGI HTTP Server 来部署 WeRoBot。 比如, 如果你想用 Gunicorn 来部署 # FileName: robot.py from werobot import WeRoBot robot = WeRoBot() 那么你只需要在 Shell 下运行 gunicorn robot:robot 使用 Supervisor 管理守护进程 请注意, werobot.run 是跑在 非守护进程模式下 的——也就是说,一旦你关 闭终端,进程就会自动退出。 我们建议您使用 Supervisor [http://supervisord.org/] 来管理 WeRoBot 的进程。 配置文件样例: [program:wechat_robot] command = python /home//robot 0 码力 | 94 页 | 74.98 KB | 1 年前3WeRoBot 1.7.0 微信公众号开发框架文档
的默认值为 auto 。 注意 WSGIRef [http://docs.python.org/library/wsgiref.html#module-wsgiref.simple_server] 的性能非常 差, 仅能用于开发环境。 如果你要在生产环境下部署 WeRoBot , 请确保你 在使用其他 server 。 通过 WSGI HTTP Server 运行 WeRoBot werobot werobot.wsgi 暴露了一个 WSGI Application ,你可以使用任何你喜欢的 WSGI HTTP Server 来部署 WeRoBot。 比如, 如果你想用 Gunicorn 来部署 # FileName: robot.py from werobot import WeRoBot robot = WeRoBot() 那么你只需要在 Shell 下运行 gunicorn robot:robot 使用 Supervisor 管理守护进程 请注意, werobot.run 是跑在 非守护进程模式下 的——也就是说,一旦你关 闭终端,进程就会自动退出。 我们建议您使用 Supervisor [http://supervisord.org/] 来管理 WeRoBot 的进程。 配置文件样例: [program:wechat_robot] command = python /home//robot 0 码力 | 94 页 | 75.38 KB | 1 年前3WeRoBot 1.9.0 微信公众号开发框架文档
的默认值为 auto 。 注意 WSGIRef [http://docs.python.org/library/wsgiref.html#module-wsgiref.simple_server] 的性能非常 差, 仅能用于开发环境。 如果你要在生产环境下部署 WeRoBot , 请确保你 在使用其他 server 。 通过 WSGI HTTP Server 运行 WeRoBot werobot werobot.wsgi 暴露了一个 WSGI Application ,你可以使用任何你喜欢的 WSGI HTTP Server 来部署 WeRoBot。 比如, 如果你想用 Gunicorn 来部署 # FileName: robot.py from werobot import WeRoBot robot = WeRoBot() 那么你只需要在 Shell 下运行 gunicorn robot:robot 使用 Supervisor 管理守护进程 请注意, werobot.run 是跑在 非守护进程模式下 的——也就是说,一旦你关 闭终端,进程就会自动退出。 我们建议您使用 Supervisor [http://supervisord.org/] 来管理 WeRoBot 的进程。 配置文件样例: [program:wechat_robot] command = python /home//robot 0 码力 | 99 页 | 76.68 KB | 1 年前3WeRoBot 1.6.0 微信公众号开发框架文档
的默认值为 auto 。 注意 WSGIRef [http://docs.python.org/library/wsgiref.html#module-wsgiref.simple_server] 的性能非常 差, 仅能用于开发环境。 如果你要在生产环境下部署 WeRoBot , 请确保你 在使用其他 server 。 通过 WSGI HTTP Server 运行 WeRoBot werobot werobot.wsgi 暴露了一个 WSGI Application ,你可以使用任何你喜欢的 WSGI HTTP Server 来部署 WeRoBot。 比如, 如果你想用 Gunicorn 来部署 # FileName: robot.py from werobot import WeRoBot robot = WeRoBot() 那么你只需要在 Shell 下运行 gunicorn robot:robot 使用 Supervisor 管理守护进程 请注意, werobot.run 是跑在 非守护进程模式下 的——也就是说,一旦你关 闭终端,进程就会自动退出。 我们建议您使用 Supervisor [http://supervisord.org/] 来管理 WeRoBot 的进程。 配置文件样例: [program:wechat_robot] command = python /home//robot 0 码力 | 85 页 | 89.26 KB | 1 年前3WeRoBot 1.8.0 微信公众号开发框架文档
的默认值为 auto 。 注意 WSGIRef [http://docs.python.org/library/wsgiref.html#module-wsgiref.simple_server] 的性能非常 差, 仅能用于开发环境。 如果你要在生产环境下部署 WeRoBot , 请确保你 在使用其他 server 。 通过 WSGI HTTP Server 运行 WeRoBot werobot werobot.wsgi 暴露了一个 WSGI Application ,你可以使用任何你喜欢的 WSGI HTTP Server 来部署 WeRoBot。 比如, 如果你想用 Gunicorn 来部署 # FileName: robot.py from werobot import WeRoBot robot = WeRoBot() 那么你只需要在 Shell 下运行 gunicorn robot:robot 使用 Supervisor 管理守护进程 请注意, werobot.run 是跑在 非守护进程模式下 的——也就是说,一旦你关 闭终端,进程就会自动退出。 我们建议您使用 Supervisor [http://supervisord.org/] 来管理 WeRoBot 的进程。 配置文件样例: [program:wechat_robot] command = python /home//robot 0 码力 | 96 页 | 75.79 KB | 1 年前3WeRoBot 1.12.0 微信公众号开发框架文档
的默认值为 auto 。 注意 WSGIRef [http://docs.python.org/library/wsgiref.html#module-wsgiref.simple_server] 的性能非常 差, 仅能用于开发环境。 如果你要在生产环境下部署 WeRoBot , 请确保你 在使用其他 server 。 通过 WSGI HTTP Server 运行 WeRoBot werobot werobot.wsgi 暴露了一个 WSGI Application ,你可以使用任何你喜欢的 WSGI HTTP Server 来部署 WeRoBot。 比如, 如果你想用 Gunicorn 来部署 # FileName: robot.py from werobot import WeRoBot robot = WeRoBot() 那么你只需要在 Shell 下运行 gunicorn robot:robot 使用 Supervisor 管理守护进程 请注意, werobot.run 是跑在 非守护进程模式下 的——也就是说,一旦你关 闭终端,进程就会自动退出。 我们建议您使用 Supervisor [http://supervisord.org/] 来管理 WeRoBot 的进程。 配置文件样例: [program:wechat_robot] command = python /home//robot 0 码力 | 103 页 | 74.49 KB | 1 年前3WeRoBot 1.10.0 微信公众号开发框架文档
的默认值为 auto 。 注意 WSGIRef [http://docs.python.org/library/wsgiref.html#module-wsgiref.simple_server] 的性能非常 差, 仅能用于开发环境。 如果你要在生产环境下部署 WeRoBot , 请确保你 在使用其他 server 。 通过 WSGI HTTP Server 运行 WeRoBot werobot werobot.wsgi 暴露了一个 WSGI Application ,你可以使用任何你喜欢的 WSGI HTTP Server 来部署 WeRoBot。 比如, 如果你想用 Gunicorn 来部署 # FileName: robot.py from werobot import WeRoBot robot = WeRoBot() 那么你只需要在 Shell 下运行 gunicorn robot:robot 使用 Supervisor 管理守护进程 请注意, werobot.run 是跑在 非守护进程模式下 的——也就是说,一旦你关 闭终端,进程就会自动退出。 我们建议您使用 Supervisor [http://supervisord.org/] 来管理 WeRoBot 的进程。 配置文件样例: [program:wechat_robot] command = python /home//robot 0 码力 | 101 页 | 73.89 KB | 1 年前3WeRoBot 1.10.1 微信公众号开发框架文档
的默认值为 auto 。 注意 WSGIRef [http://docs.python.org/library/wsgiref.html#module-wsgiref.simple_server] 的性能非常 差, 仅能用于开发环境。 如果你要在生产环境下部署 WeRoBot , 请确保你 在使用其他 server 。 通过 WSGI HTTP Server 运行 WeRoBot werobot werobot.wsgi 暴露了一个 WSGI Application ,你可以使用任何你喜欢的 WSGI HTTP Server 来部署 WeRoBot。 比如, 如果你想用 Gunicorn 来部署 # FileName: robot.py from werobot import WeRoBot robot = WeRoBot() 那么你只需要在 Shell 下运行 gunicorn robot:robot 使用 Supervisor 管理守护进程 请注意, werobot.run 是跑在 非守护进程模式下 的——也就是说,一旦你关 闭终端,进程就会自动退出。 我们建议您使用 Supervisor [http://supervisord.org/] 来管理 WeRoBot 的进程。 配置文件样例: [program:wechat_robot] command = python /home//robot 0 码力 | 102 页 | 73.98 KB | 1 年前3WeRoBot 1.10.0 微信公众号开发框架文档
的默认值为 auto 。 注意 WSGIRef [http://docs.python.org/library/wsgiref.html#module-wsgiref.simple_server] 的性能非常 差, 仅能用于开发环境。 如果你要在生产环境下部署 WeRoBot , 请确保你 在使用其他 server 。 通过 WSGI HTTP Server 运行 WeRoBot werobot werobot.wsgi 暴露了一个 WSGI Application ,你可以使用任何你喜欢的 WSGI HTTP Server 来部署 WeRoBot。 比如, 如果你想用 Gunicorn 来部署 # FileName: robot.py from werobot import WeRoBot robot = WeRoBot() 那么你只需要在 Shell 下运行 gunicorn robot:robot 使用 Supervisor 管理守护进程 请注意, werobot.run 是跑在 非守护进程模式下 的——也就是说,一旦你关 闭终端,进程就会自动退出。 我们建议您使用 Supervisor [http://supervisord.org/] 来管理 WeRoBot 的进程。 配置文件样例: [program:wechat_robot] command = python /home//robot 0 码力 | 101 页 | 73.89 KB | 1 年前3
共 667 条
- 1
- 2
- 3
- 4
- 5
- 6
- 67