CommonController.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace wechat\modules\cp\controllers;
  3. use Yii;
  4. use wechat\models\AdminApi;
  5. class CommonController extends BaseController
  6. {
  7. public function actionFrameHeader()
  8. {
  9. return $this->render('frame_header');
  10. }
  11. public function actionFrameMain()
  12. {
  13. return $this->render('frame_main');
  14. }
  15. public function actionFrameMenu()
  16. {
  17. return $this->render('frame_menu');
  18. }
  19. public function actionFrameMiddle()
  20. {
  21. return $this->render('frame_middle');
  22. }
  23. public function actionCssJsMain()
  24. {
  25. return $this->render('css_js_main');
  26. }
  27. public function actionSuccess()
  28. {
  29. $redirectUrl = Yii::$app->request->get('redirectUrl', ''); // 参数可选
  30. $tip = Yii::$app->request->get('tip', ''); // 参数可选
  31. return $this->render('success', ['redirectUrl' => $redirectUrl, 'tip' => $tip]);
  32. }
  33. public function actionError()
  34. {
  35. $redirectUrl = Yii::$app->request->get('redirectUrl', ''); // 参数可选
  36. $tip = Yii::$app->request->get('tip', ''); // 参数可选
  37. return $this->render('error', ['redirectUrl' => $redirectUrl, 'tip' => $tip]);
  38. }
  39. }