196 Commits

Author SHA1 Message Date
5ad809e815 Fix #18593: Fix setting the maxlength attribute for Html::activeInput() and Html::activeTextArea() based on length parameter of validator 2021-04-09 20:15:14 +03:00
f450760449 Fix typo 2020-12-06 12:12:46 +03:00
e49a52f3a1 Fix #18210: Allow strict comparison for multi-select inputs 2020-08-05 15:12:42 +03:00
f3f5312469 Update BaseHtml and Formatter typehints (#18185) 2020-07-19 11:14:45 +03:00
4de66f8205 Fix #16145: Fix Html helper checkboxList(), radioList(), renderSelectOptions(), dropDownList(), listBox() methods to work properly with traversable selection 2020-03-24 12:55:35 +03:00
5939813a8e Fix #17797: Fix for activeListInput options
* Tests

Test for `activeListInput` options.
Also fixed test names for `checkbox` and `radio`.

* activeListInput options

Fix for `activeListInput` options.

* Update BaseHtml.php

* Update HtmlTest.php

* Update CHANGELOG.md

* Update BaseHtml.php

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2020-03-12 18:46:38 +03:00
beca7b45d3 Fix #17793: Fix inconsistent handling of null data attribute values in yii\helpers\BaseHtml::renderTagAttributes() 2020-01-10 21:35:09 +03:00
7e471e3010 Fix #17792: Added support for aria attributes to yii\helpers\BaseHtml::renderTagAttributes() 2020-01-10 18:39:00 +03:00
d7f69b6676 Fix #17625: Fix boolean data attributes from subkeys rendering in Html::renderTagAttributes() 2019-10-22 12:26:28 +03:00
c8564241d3 Remove extra spaces from Html::csrfMetaTags (#17370) 2019-06-14 15:02:47 +03:00
bdb7c64910 Update to https protocol for php.net links (#17168) [skip ci]
* Updated php.net link for some MemCache properties [skip ci]

* Changed protocol to https for links to php.net in comments

* Changed protocol to https for links to php.net in code

* Changed www.php.net (http) to secure.php.net (https) in comments

* Changed www.php.net (http) to secure.php.net (https) in code

* Changed protocol to https for links to php.net in UPGRADE.md

* Changed protocol to https for links to pecl.php.net in comments

* Changed us.php.net to secure.php.net (https) in comments

* Changed protocol to https for links to php.net in docs

* Changed www.php.net (http) to secure.php.net (https) in docs

* Changed protocol to https for links to pecl.php.net in docs

* Changed ru/jp.php.net to secure.php.net (https) in docs

Don't sure about russian guide: is this links meant to be for guide on russian, or not?
2019-02-28 13:09:27 +03:00
768d590eef added missing @since annotations 2019-01-31 00:45:25 +01:00
a790685e66 Fixes #16974: Regular Expression Validator to include support for 'u' (UTF-8) modifier 2019-01-03 15:12:42 -05:00
06227c7075 Fixes #16648: Html::strtolower() was corrupting UTF-8 strings 2018-11-20 01:09:03 +03:00
f3438c450c Fixes #10843: Additional hidden input rendered by yii\helpers\BaseHtml methods inherits disabled HTML option if provided and set to true 2018-10-23 21:29:46 +03:00
af3b8b2f23 Fixes #11960: Fixed checked option ignore in yii\helpers\BaseHtml::checkbox() 2018-10-07 16:29:08 +03:00
4d26c915dc Additional fix for #14230 2018-09-25 17:41:45 +03:00
a8bfe8bbe6 Fixes #14230: Fixed itemsOptions ignored in checkBoxList 2018-09-19 17:39:21 +03:00
3eba4ea69a Fixes #16680: Fixed ActiveField 'text' input with maxlength 2018-09-13 12:18:18 +03:00
bf5476f253 Fixes #15889: Fixed override yii\helpers\Html::setActivePlaceholder 2018-07-29 00:07:09 +08:00
b3f54d1065 Simplified code, enhanced PHPDocs 2018-03-10 10:19:07 +02:00
52263077c0 Bug #15858: Fixed array undefined offset error calling Html::errorSummary with same error messages from different model attributes. (FabrizioCaldarelli) 2018-03-08 23:24:41 +01:00
1c473325ac Fixes #15742: Updated setActivePlaceholder to be consistent with activeLabel 2018-02-23 12:33:41 +03:00
d39d3ed0a6 Fixes #15644: Avoid wrong default selection on a dropdown, checkbox list, and radio list, when a option has a key equals to zero 2018-02-15 18:23:12 +03:00
e6f5c46cdc Fixes #15633: Deprecate some things going away/changing in 2.1
- Deprecated `yii\base\BaseObject::className()` in favor of native PHP syntax `::class`, which does not trigger autoloading
- Deprecated XCache and Zend data cache support as caching backends
- Deprecated `yii\BaseYii::powered()` method
- Added `yii\base\InvalidArgumentException` and deprecated `yii\base\InvalidParamException`
- Added `yii\BaseYii::debug()` and deprecated `yii\BaseYii::trace()`
2018-02-11 01:48:29 +03:00
9aac304220 Add some @see references near HTML class attribute handling [ci skip] (#15558) 2018-01-25 15:08:40 +03:00
4f7b410230 Fixes #9771: Assign hidden input with its own set of HTML options via $hiddenOptions in activeFileInput $options 2018-01-24 17:02:03 +03:00
b44bbd6a13 Fix code issues (#15435)
* Fix some scrunitizer warnings

* Remove obsolete require

* Fix codestyle
2018-01-01 16:21:37 +03:00
c4e1ea28f4 Updated PHPDocs, reordered CHANGELOG 2017-12-24 15:50:02 +02:00
03ab53e1fb Rename method 2017-12-24 09:52:12 +05:00
e99c574a7c Enh #15226: Auto generate placeholder from fields 2017-12-24 08:38:53 +05:00
78d76c3f2c Enh #15226: Auto generate placeholder from fields 2017-12-24 08:07:18 +05:00
9e0f19ace7 Renamed Html::error() option errorMethod to errorSource 2017-12-22 11:02:08 +02:00
f9cdcf438d Fixes #3087: Added yii\helpers\BaseHtml::error() "errorMethod" option to be able to customize errors display 2017-12-19 23:16:00 +03:00
f11f818b18 Fixes #7988: Added \yii\helpers\Console::errorSummary() and \yii\helpers\Json::errorSummary() 2017-12-14 10:59:53 +03:00
5a8c3d537b Enable phpdoc_summary rule in php-cs-fixer config (#14675)
* Enable `phpdoc_summary` rule in php-cs-fixer config.

* Fix case in "PHPDoc".
2017-08-21 11:19:35 +02:00
1501c659ac Add empty lines before return statements. (#14682) [skip ci] 2017-08-21 01:58:49 +03:00
fe8a0a6a2e Enable no_useless_else rule in php-cs-fixer (#14420) 2017-07-10 11:26:21 +03:00
ba0ab403b5 Added php-cs-fixer coding standards validation to Travis CI (#14100)
* php-cs-fixer: PSR2 rule.

* php-cs-fixer: PSR2 rule - fix views.

* Travis setup refactoring.

* Add php-cs-fixer to travis cs tests.

* Fix tests on hhvm-3.12

* improve travis config

* composer update

* revert composer update

* improve travis config

* Fix CS.

* Extract config to separate classes.

* Extract config to separate classes.

* Add file header.

* Force short array syntax.

* binary_operator_spaces fixer

* Fix broken tests

* cast_spaces fixer

* concat_space fixer

* dir_constant fixer

* ereg_to_preg fixer

* function_typehint_space fixer

* hash_to_slash_comment fixer

* is_null fixer

* linebreak_after_opening_tag fixer

* lowercase_cast fixer

* magic_constant_casing fixer

* modernize_types_casting fixer

* native_function_casing fixer

* new_with_braces fixer

* no_alias_functions fixer

* no_blank_lines_after_class_opening fixer

* no_blank_lines_after_phpdoc fixer

* no_empty_comment fixer

* no_empty_phpdoc fixer

* no_empty_statement fixer

* no_extra_consecutive_blank_lines fixer

* no_leading_import_slash fixer

* no_leading_namespace_whitespace fixer

* no_mixed_echo_print fixer

* no_multiline_whitespace_around_double_arrow fixer

* no_multiline_whitespace_before_semicolons fixer

* no_php4_constructor fixer

* no_short_bool_cast fixer

* no_singleline_whitespace_before_semicolons fixer

* no_spaces_around_offset fixer

* no_trailing_comma_in_list_call fixer

* no_trailing_comma_in_singleline_array fixer

* no_unneeded_control_parentheses fixer

* no_unused_imports fixer

* no_useless_return fixer

* no_whitespace_before_comma_in_array fixer

* no_whitespace_in_blank_line fixer

* not_operator_with_successor_space fixer

* object_operator_without_whitespace fixer

* ordered_imports fixer

* php_unit_construct fixer

* php_unit_dedicate_assert fixer

* php_unit_fqcn_annotation fixer

* phpdoc_indent fixer

* phpdoc_no_access fixer

* phpdoc_no_empty_return fixer

* phpdoc_no_package fixer

* phpdoc_no_useless_inheritdoc fixer

* Fix broken tests

* phpdoc_return_self_reference fixer

* phpdoc_single_line_var_spacing fixer

* phpdoc_single_line_var_spacing fixer

* phpdoc_to_comment fixer

* phpdoc_trim fixer

* phpdoc_var_without_name fixer

* psr4 fixer

* self_accessor fixer

* short_scalar_cast fixer

* single_blank_line_before_namespace fixer

* single_quote fixer

* standardize_not_equals fixer

* ternary_operator_spaces fixer

* trailing_comma_in_multiline_array fixer

* trim_array_spaces fixer

* protected_to_private fixer

* unary_operator_spaces fixer

* whitespace_after_comma_in_array fixer

* `parent::setRules()` -> `$this->setRules()`

* blank_line_after_opening_tag fixer

* Update finder config.

* Revert changes for YiiRequirementChecker.

* Fix array formatting.

* Add missing import.

* Fix CS for new code merged from master.

* Fix some indentation issues.
2017-06-12 12:25:45 +03:00
be658f82bf release version 2.0.12 2017-06-05 16:33:41 +02:00
6da1ec6fb2 Fixes #13845: mt_rand() is not used instead of rand() in yii\captcha\CaptchaAction + minor code improvements 2017-03-24 13:50:13 +03:00
Sam
b238afacee Fixes #4408: Add support for unicode word characters and + character in attribute names 2017-03-15 16:19:06 +03:00
e12dd895e9 improved docs for #13576 2017-03-10 16:01:24 +01:00
f47b6c7683 Fixes #7946 Fixed a bug when the form attribute was not propagated to the hidden input of the checkbox 2017-02-27 13:47:37 +03:00
148007ffd6 Refactor HTML helper attribute order (#13665) 2017-02-26 20:54:44 +03:00
a719293ab0 Fixes #13649: Fixes issue where ['uncheck' => false] and ['label' => false] options for ActiveRadio and ActiveCheckbox were ignored 2017-02-25 14:41:02 +03:00
a26d28f8e3 Fixes #13576: Added support of srcset to yii\helpers\Html::img() 2017-02-18 02:23:20 +03:00
c19b2f7dc8 release version 2.0.11 2017-02-01 17:46:29 +01:00
63e650952b Updated tests for HtmlHelper::textarea() 2016-11-29 00:06:20 +02:00
10ad620cb4 Adds ability for the user to choose if they want to double encode entities within textareas or not when using ActiveForm. Applies enhancement from #12988. 2016-11-29 00:06:12 +02:00