RoleController.php 1011 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 yii\helpers\Url;
  12. use fecadmin\FecadminbaseController;
  13. /**
  14. * @author Terry Zhao <2358269014@qq.com>
  15. * @since 1.0
  16. */
  17. class RoleController extends FecadminbaseController
  18. {
  19. # 权限
  20. public function actionManager()
  21. {
  22. $data = $this->getBlock()->getLastData();
  23. return $this->render($this->action->id,$data);
  24. }
  25. # 权限
  26. public function actionManageredit()
  27. {
  28. $data = $this->getBlock()->getLastData();
  29. return $this->render($this->action->id,$data);
  30. }
  31. # 权限
  32. public function actionManagereditsave()
  33. {
  34. $this->getBlock("manageredit")->save();
  35. }
  36. # 权限
  37. public function actionManagerdelete()
  38. {
  39. $this->getBlock("manageredit")->delete();
  40. }
  41. }