-
错误信息:
```
An Error occurred while handling another error:
worker:#0yii\base\InvalidRouteException: Unable to resolve the request "site/error". in /data/wwwroot/note-swoole/vendor/yiisoft/yii2/bas…
-
看了下文档和源码 也扫了下示例工程 https://github.com/liufee/cms 但是里面都没有可打印原来yii2 log的地方 应该是需要额外的开发logger组件 而作者没有开发?
-
Exception 'yii\base\ViewNotFoundException' with message 'The view file does not exist: /home/neil/yii2/yii2-app-advanced/vendor/yiisoft/yii2-debug/views/default/toolbar.php'
-
https://www.ddhigh.com/2019/05/19/running-yii2-on-swoole.html
-
请问 要执行task任务 要怎么写?
task中能正常实数据模型操作吗?
-
php 7.2.9
swoole 4.4.4
mbp
yii2 框架 oracle
打算用swoole开启多进程 写入数据库
非swoole可正常写入数据库
用以下代码写
`
public function actionTest()
{
$workerNum = 2;
$pool = new Pool($work…
-
-
**1. 开发环境**:
centos7 Linux 3.10.0-957.el7.x86_64
php7.2.19
swoole4.3.5
yii2-basic 2.0.20
**2. http_server.php内容,修改的地方为(原代码是加载的两个main配置文件,因为是基础模板没有这两个文件,修改成web.php),其他的地方修改的只是路径:**
```php
//原项…
-
文件位置:yii2-swoole/src/bootstrap/WebApp.php
在第44行,handleRequest方法中:
```php
$this->state = Application::STATE_HANDLING_REQUEST;
```
$this是不是应该修改为$app,因为在WebApp这个类中,包括它的父类BaseBootstrap都没有这个属性的定义, 虽然整…
-
I know there is a lot of efforts to "unify" routing management & follow so called best practices a la Symfony & Laravel .. , but after reviewing Yii3 implementation I have to acknowledge, that the bea…