mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
8606816642
commit
6e3f0c8f1c
2 changed files with 3 additions and 6 deletions
|
@ -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
|
||||
);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue