AdminCostController.php
928 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* Created by PhpStorm.
* User: ruidiudiu
* Date: 2018/11/23
* Time: 11:58
*/
namespace app\portal\controller;
use app\portal\model\EquipmentModel;
use cmf\controller\AdminBaseController;
use think\Db;
/**
* Class AdminCostController
* @package app\portal\controller
* @adminMenuRoot(
* 'name' =>'费用管理',
* 'action' =>'index',
* 'parent' =>'',
* 'display'=> true,
* 'order' => 1,
* 'icon' =>'th',
* 'remark' =>'费用管理'
* )
*/
class AdminCostController extends AdminBaseController{
public function index(){
$cost=Db::name('cost')->where('id',1)->find();
$interval = Db::name('interval')->where('id',1)->find();
$this->assign('cost',$cost);
$this->assign('interval',$interval);
return $this->fetch();
}
public function editPost(){
$param=$this->request->param();
dump($param);
}
}