CustomerController.php 751 B

123456789101112131415161718192021222324252627282930313233343536
  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 appfront\local\local_modules\Mytest\controllers;
  10. use fecshop\app\appfront\modules\AppfrontController;
  11. use Yii;
  12. use yii\web\Response;
  13. /**
  14. * @author Terry Zhao <2358269014@qq.com>
  15. * @since 1.0
  16. */
  17. class CustomerController extends AppfrontController
  18. {
  19. public function init()
  20. {
  21. parent::init();
  22. //Yii::$service->page->theme->layoutFile = 'category_view.php';
  23. }
  24. public function actionTest(){
  25. // echo 2;exit;
  26. $data = $this->getBlock()->getLastData();
  27. return $this->render($this->action->id, $data);
  28. }
  29. }