Skip to content

Commit a0cc597

Browse files
后台找不到url的error提示信息
1 parent a8b444c commit a0cc597

File tree

5 files changed

+98
-5
lines changed

5 files changed

+98
-5
lines changed

app/appadmin/config/modules/Fecadmin.php

+6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
'index' => [
1717
'class' => 'fecshop\app\appadmin\modules\Fecadmin\controllers\IndexController',
1818
],
19+
'error' => [
20+
'class' => 'fecshop\app\appadmin\modules\Fecadmin\controllers\ErrorController',
21+
],
22+
'systemlog' => [
23+
'class' => 'fecshop\app\appadmin\modules\Fecadmin\controllers\SystemlogController',
24+
],
1925
],
2026
'params' => [
2127
/**
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
/**
3+
* FecShop file.
4+
*
5+
* @link http://www.fecshop.com/
6+
* @copyright Copyright (c) 2016 FecShop Software LLC
7+
* @license http://www.fecshop.com/license/
8+
*/
9+
namespace fecshop\app\appadmin\modules\Fecadmin\controllers;
10+
use Yii;
11+
use fec\helpers\CRequest;
12+
use fecadmin\FecadminbaseController;
13+
use fecshop\app\appadmin\modules\AppadminController;
14+
/**
15+
* @author Terry Zhao <2358269014@qq.com>
16+
* @since 1.0
17+
*/
18+
class ErrorController extends AppadminController
19+
{
20+
21+
# 刷新缓存
22+
public function actionIndex()
23+
{
24+
echo "<br><b>找不到:".Yii::$app->request->getUrl().",,请先建立相应的module/controller/action
25+
,再访问该URL
26+
</b>";
27+
}
28+
29+
30+
31+
32+
}
33+
34+
35+
36+
37+
38+
39+
40+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
/**
3+
* FecShop file.
4+
*
5+
* @link http://www.fecshop.com/
6+
* @copyright Copyright (c) 2016 FecShop Software LLC
7+
* @license http://www.fecshop.com/license/
8+
*/
9+
namespace fecshop\app\appadmin\modules\Fecadmin\controllers;
10+
use Yii;
11+
use fec\helpers\CRequest;
12+
use fecadmin\FecadminbaseController;
13+
use fecshop\app\appadmin\modules\AppadminController;
14+
/**
15+
* @author Terry Zhao <2358269014@qq.com>
16+
* @since 1.0
17+
*/
18+
class SystemlogController extends AppadminController
19+
{
20+
21+
# 刷新缓存
22+
public function actionManager()
23+
{
24+
echo '<div style="padding:20px;">该功能废弃</div>';
25+
}
26+
27+
28+
29+
30+
}
31+
32+
33+
34+
35+
36+
37+
38+

app/appfront/modules/Customer/controllers/TestController.php

+13-3
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,28 @@
1616
* @author Terry Zhao <2358269014@qq.com>
1717
* @since 1.0
1818
*/
19-
class AccountController extends AppfrontController
19+
class TestController extends AppfrontController
2020
{
2121
//protected $_registerSuccessRedirectUrlKey = 'customer/account';
2222

2323
public $enableCsrfValidation = false;
2424

2525
/**
26-
* ÕË»§ÖÐÐÄ.
26+
* Н╦╗Долл─.
2727
*/
2828
public function actionIndex()
2929
{
30-
44444
30+
echo json_encode([
31+
'data' =>
32+
[
33+
['terry','1','2','3'],
34+
['water','11','22','33'],
35+
['xxx','111','222','333'],
36+
]
37+
]);
38+
39+
40+
exit;
3141
}
3242

3343
}

composer.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@
2424
"minimum-stability": "stable",
2525
"require": {
2626
"php": ">=5.4.0",
27-
"yiisoft/yii2-swiftmailer": "~2.0.7",
27+
"yiisoft/yii2-swiftmailer": "2.0.7",
2828
"yiisoft/yii2": ">=2.0.12" ,
2929
"fancyecommerce/fec":">=1.1.3.4",
3030
"fancyecommerce/fec_admin":">=1.3.6.8",
3131
"yiisoft/yii2-mongodb": "~2.1.0",
32-
"skeeks/yii2-assets-auto-compress": "*",
3332
"ramsey/uuid": "*",
3433
"facebook/graph-sdk": "*",
3534
"hightman/xunsearch": "*@beta"

0 commit comments

Comments
 (0)