去掉控制器方法的后缀名
This commit is contained in:
@@ -17,7 +17,7 @@ class SupplierController extends DefaultController
|
||||
{
|
||||
public $permission = ['dialog'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'supplier',
|
||||
@@ -68,7 +68,7 @@ class SupplierController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
$form = Form::make(['code' => 'supplier', 'id' => $id, 'action' => $action]);
|
||||
@@ -77,22 +77,22 @@ class SupplierController extends DefaultController
|
||||
], 'create');
|
||||
}
|
||||
|
||||
public function auditAction()
|
||||
public function audit()
|
||||
{
|
||||
return $this->createAction('edit');
|
||||
return $this->create('edit');
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction('edit');
|
||||
return $this->create('edit');
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
public function dialogAction()
|
||||
public function dialog()
|
||||
{
|
||||
$search = search_form(
|
||||
['advanced' => ''], [
|
||||
@@ -128,7 +128,7 @@ class SupplierController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
Reference in New Issue
Block a user