MarketingController.php 567 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace backend\controllers;
  3. use Yii;
  4. use yii\web\Controller;
  5. use yii\filters\AccessControl;
  6. /**
  7. *
  8. */
  9. class MarketingController extends BackendController
  10. {
  11. public function actionIndex()
  12. {
  13. $get = Yii::$app->request->get();
  14. if(isset($get['partial'])){
  15. return $this->renderpartial('iframeIndex');
  16. }else{
  17. return $this->render('index');
  18. }
  19. }
  20. public function actionEveryday()
  21. {
  22. return $this->render('everyday');
  23. }
  24. public function actionWorksShow()
  25. {
  26. return $this->render('worksShow');
  27. }
  28. }