Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yii2 2.0.16,可以运行,但debug条出不来,提示view不存在 #7

Closed
neilqin opened this issue Mar 26, 2018 · 1 comment
Closed

Comments

@neilqin
Copy link

neilqin commented Mar 26, 2018

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'

@neilqin
Copy link
Author

neilqin commented Mar 26, 2018

通过在debug的Model.php::beforeAction()函数中打印出来var_dump($this->getViewPath());来看,在php-fpm下是:/home/neil/yii2/yii2-app-advanced/vendor/yiisoft/yii2-debug/src/views,在swoole下面值是:/home/neil/yii2/yii2-app-advanced/vendor/yiisoft/yii2-debug/views,这里少了src一层,不知道是不是特殊处理掉了?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants