|
| 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 ConfigController extends AppadminController |
| 19 | +{ |
| 20 | + public $enableCsrfValidation = false; |
| 21 | + |
| 22 | + public function actionManager() |
| 23 | + { |
| 24 | + $data = $this->getFecadminBlock()->getLastData(); |
| 25 | + return $this->render($this->action->id,$data); |
| 26 | + } |
| 27 | + |
| 28 | + |
| 29 | + public function actionManageredit() |
| 30 | + { |
| 31 | + //echo $this->action->id ;exit; |
| 32 | + $data = $this->getFecadminBlock()->getLastData(); |
| 33 | + return $this->render($this->action->id,$data); |
| 34 | + } |
| 35 | + |
| 36 | + public function actionManagereditsave() |
| 37 | + { |
| 38 | + |
| 39 | + //echo $this->action->id ;exit; |
| 40 | + $data = $this->getFecadminBlock("manageredit")->save(); |
| 41 | + //return $this->render($this->action->id,$data); |
| 42 | + } |
| 43 | + |
| 44 | + public function actionManagerdelete() |
| 45 | + { |
| 46 | + //echo $this->action->id ;exit; |
| 47 | + $this->getFecadminBlock("manageredit")->delete(); |
| 48 | + |
| 49 | + } |
| 50 | + |
| 51 | + |
| 52 | +} |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
0 commit comments