64 lines
1.3 KiB
PHP
Executable File
64 lines
1.3 KiB
PHP
Executable File
<?php
|
|
|
|
/**
|
|
* @Author: fm453
|
|
* @Date: 2018-08-17 19:39:41
|
|
* @Last Modified by: fm453
|
|
* @Last Modified time: 2021-04-28 17:28:29
|
|
* @Email: fm453@lukegzs.com
|
|
*/
|
|
namespace backend\controllers;
|
|
|
|
use Yii;
|
|
use yii\data\Pagination;
|
|
use yii\helpers\Url;
|
|
|
|
class FeeController extends \yii\web\Controller
|
|
{
|
|
//替代常规的_construct 析构函数;其他方法调用前执行
|
|
public function init()
|
|
{
|
|
parent::init();
|
|
$session = Yii::$app->session;
|
|
if(isset($_GET['pid']) && (int)$_GET['pid']>0){
|
|
$session->set('pid',(int)$_GET['pid']);
|
|
}
|
|
$pid = $session->get('pid');
|
|
if(!$pid){
|
|
$url = Url::toRoute('/index/index');
|
|
return $this->redirect($url);
|
|
}
|
|
}
|
|
//主界面
|
|
public function actionIndex()
|
|
{
|
|
return $this->render('../layouts/dev',[]);
|
|
}
|
|
|
|
public function actionOrder()
|
|
{
|
|
return $this->render('../layouts/dev',[]);
|
|
}
|
|
|
|
public function actionRoom()
|
|
{
|
|
return $this->render('../layouts/dev',[]);
|
|
}
|
|
|
|
public function actionIncidental()
|
|
{
|
|
return $this->render('../layouts/dev',[]);
|
|
}
|
|
|
|
public function actionSale()
|
|
{
|
|
return $this->render('../layouts/dev',[]);
|
|
}
|
|
|
|
public function actionOther()
|
|
{
|
|
return $this->render('../layouts/dev',[]);
|
|
}
|
|
|
|
}
|