mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Refactoring switch in Scaffold.
This commit is contained in:
parent
3a59bf5ed6
commit
cab64b780c
1 changed files with 2 additions and 8 deletions
|
@ -469,23 +469,17 @@ class Scaffold extends Object {
|
|||
}
|
||||
switch ($params['action']) {
|
||||
case 'index':
|
||||
case 'list':
|
||||
$this->__scaffoldIndex($params);
|
||||
break;
|
||||
case 'view':
|
||||
$this->__scaffoldView($params);
|
||||
break;
|
||||
case 'list':
|
||||
$this->__scaffoldIndex($params);
|
||||
break;
|
||||
case 'add':
|
||||
$this->__scaffoldSave($params, 'add');
|
||||
break;
|
||||
case 'edit':
|
||||
$this->__scaffoldSave($params, 'edit');
|
||||
break;
|
||||
case 'create':
|
||||
$this->__scaffoldSave($params, 'add');
|
||||
break;
|
||||
case 'edit':
|
||||
case 'update':
|
||||
$this->__scaffoldSave($params, 'edit');
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue