安装了fecyo应用,只添加了一个分类和一个测试商品,打开apphtml5页面,点分类页面,出现下面报错,
yii\base\ErrorException: Use of undefined constant top_categorys - assumed 'top_categorys' (this will throw an Error in a future version of PHP) in /var/www/html/fecmall/addons/fecmall/fecyo/app/apphtml5/theme/fecyo/catalog/categorylist/index.php:12
Stack trace:
#0 /var/www/html/fecmall/addons/fecmall/fecyo/app/apphtml5/theme/fecyo/catalog/categorylist/index.php(12): yii\base\ErrorHandler->handleError(2, 'Use of undefine...', '/var/www/html/f...', 12, Array)
#1 /var/www/html/fecmall/vendor/yiisoft/yii2/base/View.php(348): require('/var/www/html/f...')
#2 /var/www/html/fecmall/vendor/yiisoft/yii2/base/View.php(257): yii\base\View->renderPhpFile('/var/www/html/f...', Array)
#3 /var/www/html/fecmall/vendor/fancyecommerce/fecshop/app/apphtml5/modules/AppfrontController.php(96): yii\base\View->renderFile('/var/www/html/f...', Array, Object(fectb\app\apphtml5\modules\Catalog\controllers\CategorylistController))
#4 /var/www/html/fecmall/addons/fecmall/fectb_theme/app/apphtml5/modules/Catalog/controllers/CategorylistController.php(35): fecshop\app\apphtml5\modules\AppfrontController->render('index', Array)
#5 [internal function]: fectb\app\apphtml5\modules\Catalog\controllers\CategorylistController->actionIndex()
#6 /var/www/html/fecmall/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#7 /var/www/html/fecmall/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#8 /var/www/html/fecmall/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('', Array)
#9 /var/www/html/fecmall/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('catalog/categor...', Array)
#10 /var/www/html/fecmall/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(fecshop\yii\web\Request))
#11 /var/www/html/fecmall/apphtml5/web/index.php(63): yii\base\Application->run()
#12 {main}
