From 6e3f0c8f1c8170152ae9e5dec105825959e3dae7 Mon Sep 17 00:00:00 2001 From: nate Date: Tue, 19 Dec 2006 19:31:14 +0000 Subject: [PATCH] Updating helper docblocks git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4110 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/view/helpers/form.php | 2 +- cake/libs/view/helpers/html.php | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/cake/libs/view/helpers/form.php b/cake/libs/view/helpers/form.php index 316af4b74..3a4aa5b22 100644 --- a/cake/libs/view/helpers/form.php +++ b/cake/libs/view/helpers/form.php @@ -99,7 +99,7 @@ class FormHelper extends AppHelper { if (empty($options['action']) || is_array($options['action'])) { $options = (array)$options; $actionDefaults = array( - 'controller' => $this->params['controller'], + 'controller' => Inflector::underscore($this->params['controller']), 'action' => $created ? 'edit' : 'add', 'id' => $created ? $this->data[$model][$data['key']] : null ); diff --git a/cake/libs/view/helpers/html.php b/cake/libs/view/helpers/html.php index 873250886..5c673a8f0 100644 --- a/cake/libs/view/helpers/html.php +++ b/cake/libs/view/helpers/html.php @@ -284,11 +284,8 @@ class HtmlHelper extends AppHelper { } } /** - * Creates a submit widget. - * - * @param string $caption Text on submit button - * @param array $htmlAttributes Array of HTML attributes. - * @return string + * @deprecated + * @see FormHelper::submit */ function submit($caption = 'Submit', $htmlAttributes = array()) { $htmlAttributes['value'] = $caption;