53 lines
932 B
PHP
53 lines
932 B
PHP
|
|
<?php
|
|||
|
|
declare (strict_types = 1);
|
|||
|
|
namespace app\admin\controller;
|
|||
|
|
|
|||
|
|
use app\AdminController;
|
|||
|
|
use Webman\Http\Request;
|
|||
|
|
use app\admin\model\Ceshi as CeshiModel;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* ceshi
|
|||
|
|
* 测试代码
|
|||
|
|
* <!---->
|
|||
|
|
* Class Ceshi
|
|||
|
|
* @package app\admin\controller
|
|||
|
|
*/
|
|||
|
|
class Ceshi extends AdminController
|
|||
|
|
{
|
|||
|
|
/**
|
|||
|
|
* Ceshi模型对象
|
|||
|
|
* @var \app\admin\model\Ceshi
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
public function __construct()
|
|||
|
|
{
|
|||
|
|
parent::__construct();
|
|||
|
|
$this->model = new CeshiModel;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 默认生成的方法为index/add/edit/del/status 五个方法
|
|||
|
|
* 当创建CURD的时候,DIY的函数体和模板为空,请自行编写代码
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* zdy 函数
|
|||
|
|
*/
|
|||
|
|
public function zdy()
|
|||
|
|
{
|
|||
|
|
return $this->view();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* xiaoMing 函数
|
|||
|
|
*/
|
|||
|
|
public function xiaoMing()
|
|||
|
|
{
|
|||
|
|
return $this->view();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|