Marco van 't Wout
13b5f7982d
Adhere to Yii coding standards
2022-09-27 11:20:02 +02:00
Chris Sears
31f02e1f69
Update to cast strcmp argument to string
...
Updated solution based on initial pull request feedback
2022-08-25 08:26:26 -06:00
Chris Sears
3f2bdf39c8
PHP 8.1 support for active checkbox list
...
In PHP 8.1 I am receiving the error below when using CActiveForm checkbox field, when the CFormModel model attribute has a default 'null' value as defined.
"strcmp(): Passing null to parameter #2 ($string2) of type string is deprecated"
The 'null' value is passed to the checkBoxList() method as the second argument variable $select. A null value is not allowed in PHP 8.1 in strcmp(). An additional condition check for !empty() on the $select variable will prevent this error, as well as support the remaining variable types for a string or array.
2022-08-24 19:12:31 -06:00
Arhell
1162a1d343
update jquery & others links
2022-08-13 01:09:35 +03:00
Arhell
8518f95605
update yii & php.net links
2022-08-09 00:11:49 +03:00
Arhell
fad0c5be77
update links
2022-08-07 11:54:16 +03:00
Marco van 't Wout
4d5fed480d
Apply another fix for "Passing null to parameter ..... of type string is deprecated"
2022-03-31 18:30:03 +02:00
Marco van 't Wout
09f157132b
Apply various fixes for "Passing null to parameter ..... of type string is deprecated" (ported from https://github.com/yiisoft/yii2/pull/19041 )
2022-03-31 18:08:01 +02:00
Robert Korulczyk
3792709f39
Use callable as type name instead of callback in phpdoc ( #4378 )
2021-10-06 16:44:08 +03:00
Marco van 't Wout
d7cf08db20
Apply proper documentation encoding for #4351
2021-04-02 16:47:10 +02:00
Marco van 't Wout
243755e8b6
Add option to omit [CDATA wrapping from contents of <script> and <style> for HTML 5 applications.
2021-03-11 18:13:44 +01:00
Marco van 't Wout
d009410a65
Fix indentation
2021-03-11 18:08:39 +01:00
Marco van 't Wout
097c482656
Add option to omit type="text/javascript" from <script> in HTML 5 applications. Keep original order of src and type attributes.
2021-03-11 17:49:24 +01:00
Serhii Hidenko
eccb713b7d
Fix #4317 : Added special option 'encode' to $htmlOptions argument in CHtml::errorSummary and CHtml::error
2020-10-03 21:30:32 +03:00
Robert Korulczyk
3c815a8d02
Update CHtml phpdoc types ( #4286 ) [skip ci]
2020-01-08 16:40:20 +03:00
daniel1302
2ebe9b6513
Fixes #4191 : Fixed multiple PHP 7.2 issues, added a way to exclude classes from autoloader
2018-01-31 03:08:29 +07:00
Alexander Makarov
acb7a3b488
Reworked model error escaping to escape on output rather than in validators directly
2017-05-27 02:26:06 +05:00
Alexander Makarov
9b14ff3e3f
Fixes #4064 : Fixed CHtml::beginForm which produced wrong HTML when using an anchor in the action URL of a GET form
2017-03-14 00:30:12 +03:00
Robert Korulczyk
711ab48cd7
inherit "disabled" attribute in internally rendered hidden fields in checkbox, radio, etc.
2016-02-13 20:15:14 +01:00
Teo
1509104f17
allow overriding the 'required' option in CHtml::activeLabelEx()
...
close #3738
2015-02-07 22:03:23 +01:00
root
3c9f669235
Fixes #3623 : Added 'itemscope' to list of special attributes in renderAttribute
2014-11-10 19:43:28 +03:00
Carsten Brandt
38754bb259
bump @since version number for 1.1.15
...
they are in 1.1.16 now because 1.1.15 was a security release
2014-10-23 19:35:48 +02:00
Alexander Makarov
7fc9bc0b4d
Better fix for <script async="false"
2014-04-05 15:02:58 +04:00
Wil Wade
3e1e4be6c3
Remove async from list of Special Attributes so that it is possible to use async=false per issue: #3314
2014-04-03 18:13:23 -04:00
hwmaier
906a31dd06
checkBoxList and radioButtonList to take into account closeSingleTags parameter for <br> tag
...
Changed checkBoxList and radioButtonList methods to generate <br/> or
<br> separator tags depending on closeSingleTags setting.
2014-03-19 10:51:10 +10:00
Alexander Pletnev
1fd6c1aa8c
strict string comparison is always better
2014-02-26 21:26:37 +04:00
Muhammad Mahad Azad
1552209695
removed display:none on hidden form fields
2014-02-22 23:54:45 +05:00
resurtm
0490e653cb
Code performance fix related to #3185
2014-02-19 14:24:18 +06:00
resurtm
52b1e4ca44
Updated CHtml to add maxlength support to all HTML5 fields
...
Fixes #3185 . Fixes #2741 .
2014-02-19 13:12:04 +06:00
Carsten Brandt
86547f5dcb
docs about html options
...
fixes #2844
2014-01-28 11:34:20 +01:00
Carsten Brandt
ffef1e47c9
updated docs for active radiobuttonlist and checkboxlist
...
fixes #3028
2014-01-28 11:24:50 +01:00
Alexander Makarov
fd088f94f7
Merge pull request #2799 from codemix/html5-elements-squash
...
Add HTML5 input support
2013-09-17 04:37:57 -07:00
Domrachev Roman
ec584acbd7
Fix CHtml::radioButtonList(). It worked incorrectly with numeric keys in $data.
2013-09-12 17:07:01 +07:00
Charles Pick
74310e9dac
Fix indents
2013-09-11 21:09:44 +01:00
Charles Pick
a754252c6f
resolve merge conflicts
2013-08-21 14:52:49 +01:00
Charles Pick
e5a036fd7c
fix code style
2013-08-21 14:46:09 +01:00
Charles Pick
2ca58cbbdd
Add html5 form elements
2013-08-20 23:27:56 +01:00
Charles Pick
c6a3ae50de
Add RESTful method support for html forms
...
This commit allows calls to `CHtml::form()`, `CHtml::beginForm`
`CActiveForm::$method` etc to accept verbs other than `post` and `get`,
e.g. `delete`, `put`, `patch` etc
This is implemented by detecting non `post`, `get`, converting to `post`
and adding a hidden `_method` field, similar to how CSRF protection works.
2013-07-26 23:17:03 +01:00
resurtm
d2a1818a3d
Fixes related to #129 and #2446 :
...
1. Fix CS.
2. Add additional PHPDoc declarations.
2013-07-08 10:06:13 +06:00
Paul Klimov
e9e929aa09
"CHtml::activeLabel()" has been fixed to resolve attribute label for tabular input in case custom "for" has been specified.
2013-05-29 12:40:46 +03:00
nsanden
7a22710e17
CHtml ajax doc fix
2013-05-27 11:24:49 -07:00
Alexander Makarov
c5eabde5b3
fixed CHtml::setModelNameConverter
2013-05-21 14:14:54 +04:00
Alexander Makarov
a16c1a218c
fixed code style for #2225
2013-05-20 20:29:20 +04:00
LastDragon-ru
75d46631cc
Using "call_user_func()" instead of "$callback()".
2013-05-05 16:28:40 +04:00
LastDragon-ru
dfbf73fdef
Fixed variable names.
2013-05-05 15:16:08 +04:00
LastDragon-ru
8cb0800fc6
Fixed remarks from #2225
2013-05-05 15:09:24 +04:00
LastDragon-ru
5f0e9873c0
Fix whitespace.
2013-05-05 14:58:30 +04:00
LastDragon-ru
71314d6f2f
Rename CHtml::setNameByModelConverter() to CHtml::setClassToNameConverter()
2013-05-05 14:58:26 +04:00
LastDragon-ru
1bfe6255f0
Fixed generation of the HTML class attribute for the data model * @see https://github.com/yiisoft/yii/issues/129 * @see https://github.com/yiisoft/yii/pull/1808
2013-05-05 14:58:22 +04:00
Paul Klimov
4c4b36ac56
"CHtml::button()" has been updated to not enforce "value" attribute for the image buttons.
2013-04-29 16:15:08 +03:00