commit | author | age
|
90c639
|
1 |
<?php |
Z |
2 |
/** |
|
3 |
* @copyright ©2018 浙江禾匠信息科技 |
|
4 |
* @author Lu Wei |
|
5 |
* @link http://www.zjhejiang.com/ |
|
6 |
* Created by IntelliJ IDEA |
|
7 |
* Date Time: 2018/10/30 16:10 |
|
8 |
*/ |
|
9 |
|
|
10 |
|
|
11 |
namespace app\controllers; |
|
12 |
|
|
13 |
|
|
14 |
use app\forms\BdCaptchaAction; |
|
15 |
use yii\captcha\CaptchaAction; |
|
16 |
|
|
17 |
class SiteController extends Controller |
|
18 |
{ |
|
19 |
public function actions() |
|
20 |
{ |
|
21 |
return [ |
|
22 |
'pic-captcha' => [ |
|
23 |
'class' => BdCaptchaAction::class, |
|
24 |
'minLength' => 4, |
|
25 |
'maxLength' => 5, |
|
26 |
], |
|
27 |
]; |
|
28 |
} |
|
29 |
|
|
30 |
public function actionIndex() |
|
31 |
{ |
|
32 |
return $this->redirect(\Yii::$app->urlManager->createUrl(['admin/index/index'])); |
|
33 |
} |
|
34 |
|
|
35 |
public function actionInstallPlugin($name) |
|
36 |
{ |
|
37 |
var_dump(\Yii::$app->plugin->install($name)); |
|
38 |
} |
|
39 |
} |