Skip to content
Permalink
Browse files

Refactoring switch in Scaffold.

  • Loading branch information...
markstory committed Oct 31, 2009
1 parent 3a59bf5 commit cab64b780c5a3480e884a2ea63469f7e6bcb1cfc
Showing with 2 additions and 8 deletions.
  1. +2 −8 cake/libs/controller/scaffold.php
@@ -469,23 +469,17 @@ function __scaffold($params) {
}
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;

0 comments on commit cab64b7

Please sign in to comment.
You can’t perform that action at this time.