ConfigController.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 fecadmin\controllers;
  10. use Yii;
  11. use fec\helpers\CRequest;
  12. use fecadmin\FecadminbaseController;
  13. /**
  14. * @author Terry Zhao <2358269014@qq.com>
  15. * @since 1.0
  16. */
  17. class ConfigController extends FecadminbaseController
  18. {
  19. # 鎴戠殑璐︽埛
  20. public function actionManager()
  21. {
  22. //echo $this->action->id ;exit;
  23. $data = $this->getBlock()->getLastData();
  24. return $this->render($this->action->id,$data);
  25. }
  26. public function actionManageredit()
  27. {
  28. //echo $this->action->id ;exit;
  29. $data = $this->getBlock()->getLastData();
  30. return $this->render($this->action->id,$data);
  31. }
  32. public function actionManagereditsave()
  33. {
  34. //echo $this->action->id ;exit;
  35. $data = $this->getBlock("manageredit")->save();
  36. //return $this->render($this->action->id,$data);
  37. }
  38. public function actionManagerdelete()
  39. {
  40. //echo $this->action->id ;exit;
  41. $this->getBlock("manageredit")->delete();
  42. }
  43. }