Removing 'id' key param in FormHelper::create() it normally only served to make routing more complex. Removal also enables reverse routing to work with scaffolding.

This commit is contained in:
mark_story 2009-09-29 22:46:45 -04:00
parent c69410d809
commit 1c8ec459b6

View file

@ -198,7 +198,7 @@ class FormHelper extends AppHelper {
'plugin' => $this->plugin,
'controller' => $view->viewPath,
'action' => $options['action'],
'id' => $id
0 => $id
);
if (!empty($options['action']) && !isset($options['id'])) {
$options['id'] = $model . Inflector::camelize($options['action']) . 'Form';