新增模块创建命令

This commit is contained in:
wuyanwen
2019-12-19 07:19:15 +08:00
parent 7e304cacf0
commit 122b624580
3 changed files with 149 additions and 77 deletions

View File

@@ -1,18 +1,18 @@
<?php
namespace {NAMESPACE};
use app\BaseController;
use catcher\base\CatchController;
class {CLASS} extends BaseController
class {CLASS} extends CatchController
{
public function index()
{
return $this->fetch('{MODULE}::index');
return $this->fetch();
}
public function create()
{
return $this->fetch('{MODULE}::create');
return $this->fetch();
}
public function save()
@@ -23,7 +23,7 @@ class {CLASS} extends BaseController
public function edit()
{
return $this->fetch('{MODULE}::edit');
return $this->fetch();
}
public function update()