添加测试的代码生成以及采购编码的页面的代码生成
This commit is contained in:
52
app/admin/controller/Ceshi.php
Normal file
52
app/admin/controller/Ceshi.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user