yii2 用命令行操作web下的controller
Console Runner
An extension for running console commands on background in Yii framework.
Installation
Add the following to require
section of your composer.json
:
"vova07/yii2-console-runner-extension": "*"
Then do composer install
.
Usage
Imported class:
use vova07consoleConsoleRunner;
$cr = new ConsoleRunner(["file" => "@my/path/to/yii"]);
$cr->run("controller/action param1 param2 ...");
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。
- 上一篇: php:字符串的合并与分割
- 下一篇: yii2 高级框架无法使用yii命令的问题
copyright © 2008-2019 亿联网络 版权所有 备案号:粤ICP备14031511号-2