去掉控制器方法的后缀名
This commit is contained in:
@@ -16,7 +16,7 @@ class Record01Controller extends AuditController
|
||||
{
|
||||
public $permission = ['dialog'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'stock_record01',
|
||||
@@ -67,7 +67,7 @@ class Record01Controller extends AuditController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int) Request::get('id');
|
||||
$header['action'] = $action;
|
||||
@@ -81,23 +81,23 @@ class Record01Controller extends AuditController
|
||||
], $tpl);
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
public function printAction()
|
||||
public function print()
|
||||
{
|
||||
$this->layout = 'layouts.print2';
|
||||
print_prince($this->createAction('print'));
|
||||
print_prince($this->create('print'));
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
Reference in New Issue
Block a user