Skip to content
Permalink
Browse files

Use short widget names instead of FQCN.

This allows widget with same name under App namespace to be automatically used
without extra config.
  • Loading branch information...
ADmad committed Feb 11, 2016
1 parent 928beba commit c154d4eaffc58408103e8f277803ec0f49d972e1
Showing with 11 additions and 11 deletions.
  1. +11 −11 src/View/Helper/FormHelper.php
@@ -129,17 +129,17 @@ class FormHelper extends Helper
* @var array
*/
protected $_defaultWidgets = [
'button' => ['Cake\View\Widget\ButtonWidget'],
'checkbox' => ['Cake\View\Widget\CheckboxWidget'],
'file' => ['Cake\View\Widget\FileWidget'],
'label' => ['Cake\View\Widget\LabelWidget'],
'nestingLabel' => ['Cake\View\Widget\NestingLabelWidget'],
'multicheckbox' => ['Cake\View\Widget\MultiCheckboxWidget', 'nestingLabel'],
'radio' => ['Cake\View\Widget\RadioWidget', 'nestingLabel'],
'select' => ['Cake\View\Widget\SelectBoxWidget'],
'textarea' => ['Cake\View\Widget\TextareaWidget'],
'datetime' => ['Cake\View\Widget\DateTimeWidget', 'select'],
'_default' => ['Cake\View\Widget\BasicWidget'],
'button' => ['Button'],
'checkbox' => ['Checkbox'],
'file' => ['File'],
'label' => ['Label'],
'nestingLabel' => ['NestingLabel'],
'multicheckbox' => ['MultiCheckbox', 'nestingLabel'],
'radio' => ['Radio', 'nestingLabel'],
'select' => ['SelectBox'],
'textarea' => ['Textarea'],
'datetime' => ['DateTime', 'select'],
'_default' => ['Basic'],
];
/**

0 comments on commit c154d4e

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