AccountController.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 AccountController extends FecadminbaseController
  18. {
  19. # 我的账户
  20. public function actionIndex()
  21. {
  22. $data = $this->getBlock()->getLastData();
  23. return $this->render($this->action->id,$data);
  24. }
  25. # 我的账户
  26. public function actionManager()
  27. {
  28. //echo $this->action->id ;exit;
  29. $data = $this->getBlock()->getLastData();
  30. return $this->render($this->action->id,$data);
  31. }
  32. public function actionManageredit()
  33. {
  34. //echo $this->action->id ;exit;
  35. $data = $this->getBlock()->getLastData();
  36. return $this->render($this->action->id,$data);
  37. }
  38. public function actionManagereditsave()
  39. {
  40. //echo $this->action->id ;exit;
  41. $data = $this->getBlock("manageredit")->save();
  42. //return $this->render($this->action->id,$data);
  43. }
  44. public function actionManagerdelete()
  45. {
  46. //echo $this->action->id ;exit;
  47. $this->getBlock("manageredit")->delete();
  48. }
  49. }