Yii 1 Yii::import 不工作但包括做

Yii 1 Yii::import doen'ts work but include do

我已经更换了我的供应商,现在我遇到了这个错误

Fatal error: Class 'GxController' not found in /home/clients/bbbf03544f22c763cd3acfefa31454be/web/protected/controllers/SiteController.php on line 6

我以前是这样导入的:

Yii::import(‘application.components.GxController);

现在我必须做

include Yii::app()->getBasePath().'/components/GxController.php';

有什么想法吗?我不想更改所有代码..

之前我使用 php 5.4,现在是 5.6

非常感谢..

我用 .htaccess 文件修复它,例如:

Options +FollowSymLinks
RewriteEngine on
RewriteBase /

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php
RewriteRule . index.php [L]