ctms/front-hiluker/controllers/SolutionController.php
2025-04-10 23:19:13 +08:00

163 lines
6.3 KiB
PHP
Executable File

<?php
/**
* @Author: fm453
* @Date: 2019-06-24 23:47:36
* @Last Modified by: fm453
* @Last Modified time: 2021-08-23 10:14:58
* @Email: fm453@lukegzs.com
*/
namespace frontend\controllers;
use Yii;
use yii\base\InvalidParamException;
use yii\web\BadRequestHttpException;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
class SolutionController extends Controller
{
public function actionIndex()
{
global $_HI;
include_once __DIR__.'/solution/index.php';
$this->getView()->params['seo'] = $seo;
$this->getView()->params['pageTitle'] = $pageTitle;
$this->getView()->params['title'] = $seo['title'];
$this->getView()->params['pageCate'] = $pageCate;
$this->getView()->params['pageOpp'] = $ac;
$this->getView()->params['htmlSrc'] = $htmlSrc;
$this->getView()->params['url']['product'] = fmFunc_url(Yii::$app->controller->id,'product',$isAddons=1);
return $this->render('index');
}
public function actionBeauty()
{
global $_HI;
include_once __DIR__.'/solution/beauty.php';
$this->getView()->params['seo'] = $seo;
$this->getView()->params['pageTitle'] = $pageTitle;
$this->getView()->params['title'] = $seo['title'];
$this->getView()->params['pageCate'] = $pageCate;
$this->getView()->params['pageOpp'] = $ac;
$this->getView()->params['htmlSrc'] = $htmlSrc;
$this->getView()->params['url']['product'] = fmFunc_url(Yii::$app->controller->id,'product',$isAddons=1);
return $this->render('beauty');
}
public function actionCatering()
{
global $_HI;
include_once __DIR__.'/solution/catering.php';
$this->getView()->params['seo'] = $seo;
$this->getView()->params['pageTitle'] = $pageTitle;
$this->getView()->params['title'] = $seo['title'];
$this->getView()->params['pageCate'] = $pageCate;
$this->getView()->params['pageOpp'] = $ac;
$this->getView()->params['htmlSrc'] = $htmlSrc;
$this->getView()->params['url']['product'] = fmFunc_url(Yii::$app->controller->id,'product',$isAddons=1);
return $this->render('catering');
}
public function actionCountry()
{
global $_HI;
include_once __DIR__.'/solution/country.php';
$this->getView()->params['seo'] = $seo;
$this->getView()->params['pageTitle'] = $pageTitle;
$this->getView()->params['title'] = $seo['title'];
$this->getView()->params['pageCate'] = $pageCate;
$this->getView()->params['pageOpp'] = $ac;
$this->getView()->params['htmlSrc'] = $htmlSrc;
$this->getView()->params['url']['product'] = fmFunc_url(Yii::$app->controller->id,'product',$isAddons=1);
return $this->render('country');
}
public function actionHotels()
{
global $_HI;
include_once __DIR__.'/solution/hotels.php';
$this->getView()->params['seo'] = $seo;
$this->getView()->params['pageTitle'] = $pageTitle;
$this->getView()->params['title'] = $seo['title'];
$this->getView()->params['pageCate'] = $pageCate;
$this->getView()->params['pageOpp'] = $ac;
$this->getView()->params['htmlSrc'] = $htmlSrc;
$this->getView()->params['url']['product'] = fmFunc_url(Yii::$app->controller->id,'product',$isAddons=1);
return $this->render('hotels');
}
public function actionKtv()
{
global $_HI;
include_once __DIR__.'/solution/ktv.php';
$this->getView()->params['seo'] = $seo;
$this->getView()->params['pageTitle'] = $pageTitle;
$this->getView()->params['title'] = $seo['title'];
$this->getView()->params['pageCate'] = $pageCate;
$this->getView()->params['pageOpp'] = $ac;
$this->getView()->params['htmlSrc'] = $htmlSrc;
$this->getView()->params['url']['product'] = fmFunc_url(Yii::$app->controller->id,'product',$isAddons=1);
return $this->render('ktv');
}
public function actionOffline()
{
global $_HI;
include_once __DIR__.'/solution/offline.php';
$this->getView()->params['seo'] = $seo;
$this->getView()->params['pageTitle'] = $pageTitle;
$this->getView()->params['title'] = $seo['title'];
$this->getView()->params['pageCate'] = $pageCate;
$this->getView()->params['pageOpp'] = $ac;
$this->getView()->params['htmlSrc'] = $htmlSrc;
$this->getView()->params['url']['product'] = fmFunc_url(Yii::$app->controller->id,'product',$isAddons=1);
return $this->render('offline');
}
public function actionRetail()
{
global $_HI;
include_once __DIR__.'/solution/retail.php';
$this->getView()->params['seo'] = $seo;
$this->getView()->params['pageTitle'] = $pageTitle;
$this->getView()->params['title'] = $seo['title'];
$this->getView()->params['pageCate'] = $pageCate;
$this->getView()->params['pageOpp'] = $ac;
$this->getView()->params['htmlSrc'] = $htmlSrc;
$this->getView()->params['url']['product'] = fmFunc_url(Yii::$app->controller->id,'product',$isAddons=1);
return $this->render('retail');
}
public function actionSingle()
{
global $_HI;
include_once __DIR__.'/solution/single.php';
$this->getView()->params['seo'] = $seo;
$this->getView()->params['pageTitle'] = $pageTitle;
$this->getView()->params['title'] = $seo['title'];
$this->getView()->params['pageCate'] = $pageCate;
$this->getView()->params['pageOpp'] = $ac;
$this->getView()->params['htmlSrc'] = $htmlSrc;
$this->getView()->params['url']['product'] = fmFunc_url(Yii::$app->controller->id,'product',$isAddons=1);
return $this->render('single');
}
public function actionTourist()
{
global $_HI;
include_once __DIR__.'/solution/tourist.php';
$this->getView()->params['seo'] = $seo;
$this->getView()->params['pageTitle'] = $pageTitle;
$this->getView()->params['title'] = $seo['title'];
$this->getView()->params['pageCate'] = $pageCate;
$this->getView()->params['pageOpp'] = $ac;
$this->getView()->params['htmlSrc'] = $htmlSrc;
$this->getView()->params['url']['product'] = fmFunc_url(Yii::$app->controller->id,'product',$isAddons=1);
return $this->render('tourist');
}
}