我新建模块的时候服务层查询数据库,我没有使用原来/vendor/fancyecommerce/fecshop/xx/module/xx.php文件,而是新建了一个数据库文件/var/html/www/fecshop/appadmin/local/local_models/mysqldb/xx.php,在本地运行的时候没有报错。但是我上传到服务器就出状况了。
所有的都报同一个错误:
错误
Http status: 500 Internal Server Error
ajaxOptions: error
thrownError: Internal Server Error
PHP Fatal Error 'yii\base\ErrorException' with message 'Class '\appadmin\local\local_models\mysqldb\product\customer' not found' in /var/html/www/fecshop/vendor/fancyecommerce/fecshop/yii/Yii.php:42
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleFatalError()
#1 {main}