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

178 lines
7.0 KiB
PHP
Executable File

<?php
/**
* @Author: fm453
* @Date: 2019-06-24 23:47:36
# @Last modified by: fm453
# @Last modified time: 2021-09-15T11:50:59+08:00
* @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 ProductController extends Controller
{
public function actionIndex()
{
global $_HI;
include_once __DIR__.'/product/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['list'] = $list;
$this->getView()->params['url']['product'] = fmFunc_url(Yii::$app->controller->id,'product',$isAddons=1);
return $this->render('index');
}
public function actionCrossb()
{
global $_HI;
include_once __DIR__.'/product/crossb.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('crossb');
}
public function actionDistribution()
{
global $_HI;
include_once __DIR__.'/product/distribution.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('distribution');
}
public function actionGlobal()
{
global $_HI;
include_once __DIR__.'/product/distribution.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('global');
}
public function actionHardware()
{
global $_HI;
include_once __DIR__.'/product/hardware.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('hardware');
}
public function actionMendian()
{
global $_HI;
include_once __DIR__.'/product/mendian.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('mendian');
}
public function actionSocially()
{
global $_HI;
include_once __DIR__.'/product/socially.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('socially');
}
public function actionUppackage()
{
global $_HI;
include_once __DIR__.'/product/uppackage.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('uppackage');
}
public function actionVcity()
{
global $_HI;
include_once __DIR__.'/product/vcity.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('vcity');
}
public function actionVcms()
{
global $_HI;
include_once __DIR__.'/product/vcms.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('vcms');
}
public function actionVmedia()
{
global $_HI;
include_once __DIR__.'/product/vmedia.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('vmedia');
}
}