我创建了一个yii2项目,在我的Windows本地主机上运行正常。ViewNotFoundException共享主机上的Cpanel + Yii2
我在Windows机器上使用XAMPP来处理Yii2应用程序。
但由于我在Cpanel Linux Shared Hosting上成功部署了应用程序,因此无法在我的网站上打开这些页面。
以下是Shared Hosting后端/网络日志上的错误;
[error][yii\base\ViewNotFoundException] exception 'yii\base\ViewNotFoundException' with message 'The view file does not exist: /home/xyz/public_html/nse/backend/views/site/student\student_list.php' in /home/xyz/public_html/nse/vendor/yiisoft/yii2/base/View.php:229
同样的东西工作正常,我的本地机器上。 有什么帮助吗?
你的本地机器WIndows和服务器是Linux吗? – Bizley
是的,先生。那是对的。 –