去掉控制器方法的后缀名
This commit is contained in:
@@ -16,7 +16,7 @@ class Record11Controller extends AuditController
|
||||
{
|
||||
public $permission = ['dialog'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'stock_record11',
|
||||
@@ -66,7 +66,7 @@ class Record11Controller extends AuditController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int) Request::get('id');
|
||||
$header['action'] = $action;
|
||||
@@ -80,17 +80,17 @@ class Record11Controller 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()
|
||||
{
|
||||
$id = Request::get('id');
|
||||
$template_id = Request::get('template_id');
|
||||
@@ -135,12 +135,12 @@ class Record11Controller extends AuditController
|
||||
|
||||
} else {
|
||||
$this->layout = 'layouts.print2';
|
||||
$tpl = $this->createAction('print');
|
||||
$tpl = $this->create('print');
|
||||
print_prince($tpl);
|
||||
}
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
Reference in New Issue
Block a user