Updating helper docblocks

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4110 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2006-12-19 19:31:14 +00:00
parent 8606816642
commit 6e3f0c8f1c
2 changed files with 3 additions and 6 deletions

View file

@ -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
);

View file

@ -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;