52e4a3e645
release version 2.0.50
2024-05-30 20:23:31 +03:00
e2a167028b
Upgrade to PSR12 coding standard ( #20121 )
2024-03-19 17:21:27 +03:00
60ea174348
Fix typo in Menu phpdoc ( #20101 )
2024-01-12 08:57:18 +03:00
5eeb12f275
Fix #19060 : Fix yii\widgets\Menu
bug when using Closure for active item and adding additional tests in tests\framework\widgets\MenuTest
2023-10-20 16:49:25 +03:00
161526cd41
HTTPS everywhere ( #19503 )
2022-08-03 12:32:18 +03:00
a87c02c712
Fix more types ( #19333 )
...
* Migration::upsert() returns void
* Unneeded `@property` tags
* Add missing `null` param/return types
* Null types for db\Query + db\ActiveQuery
* Fixed testSelect
* Null types for Validator
* Several more null types
* One more
* Make AccessRule::$allow always a boolean
It doesn't have any special null handling, so it's safe to default to false
* Validator::$skipOnEmpty is always a boolean
* Catch all throwable from Widget::widget()
* Don't limit $previous args to \Exception
The actual \Exception allows $previous to be any throwable in PHP 7+
* Add Throwable catch block to Instance::get()
* Throwable cleanup
Comment changes only.
- Document \Throwable instead of \Exception wherever appropriate
- Removed redundant exception/error classes when \Throwable is referenced
* Yii::setlogger() accepts null
* ArrayHelper::removeValue() can remove any type of value
* Change default $allow value to false
2022-04-03 11:20:21 +02:00
4628b91e73
Fix types ( #19332 )
...
* Migration::upsert() returns void
* Unneeded `@property` tags
* Add missing `null` param/return types
* Null types for db\Query + db\ActiveQuery
* Fixed testSelect
2022-03-30 18:40:10 +02:00
e3028c524d
Fix #18899 : Replace usages of strpos
with strncmp
and remove redundant usage of array_merge
and array_values
2021-09-28 11:06:46 +03:00
b8f4958092
Fix #18442 : Fix calls with array access to strings
2020-12-23 01:08:58 +03:00
98533b7e31
Fix #18426 : Fix check for route's leading slash in yii\widgets\Menu
2020-12-09 14:05:26 +03:00
9910519aba
Revert "Fixes #16657 : Ensure widgets after run event result contains the result of the rendered widget"
...
This reverts commit 7dc38ff4029ec96931c574dac430a924370ea039.
2018-10-01 01:04:11 +03:00
7dc38ff402
Fixes #16657 : Ensure widgets after run event result contains the result of the rendered widget
2018-09-23 13:28:09 +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
4e9497c4fa
Fixes #13770 : Added support for yii\widgets\Menu
item classes definition in the form of an array
2017-04-01 16:57:17 +03:00
a710345ea7
Enhanced PHPDocs, added Unit tests, updated CHANGELOG
2016-12-18 11:24:24 +02:00
4afbad1aae
Calculation of activity menu item through the closure
...
Extended documentation
2016-12-18 11:24:24 +02:00
4aa935e69e
Fixes #12055 : Changed boolean
to bool
and integer
to int
in phpdoc
2016-11-07 02:51:39 +03:00
0895f212c6
improved docs about tag
option in HTML options
2016-07-03 10:57:47 +02:00
cd7039e97c
WIP #10764
2016-02-07 16:39:41 +01:00
cd87d67f34
Global DOCS update: ~~~ replaced with ```
2015-12-02 23:15:28 +02:00
b548c8f710
Fixed determine active menu item with url-alias in route
...
close #8900
2015-06-25 23:53:48 +02:00
91a6e4bc8e
Fixed incorrect URL config processing at yii\web\Application::handleRequest()
and yii\widgets\Menu::items
if route element is not a first one
2015-04-22 17:43:15 +03:00
cafd135022
Fixes #8064 : Added ability to remove containing menu tag by setting yii\widgets\Menu::$options['tag']
to false
2015-04-15 13:21:14 +03:00
81bcd116a8
Added "submenuTemplate" property for "items" config in Menu widget
...
fixes #5681
close #5897
2015-03-01 00:33:00 +01:00
a5b9aec6cd
Fixed phpdoc typo
2015-02-24 03:05:43 +03:00
02f8f7ef9d
Fixes #7332 : Added ability to remove yii\widgets\Menu
container tag by setting options['tag']
to false
2015-02-24 02:06:42 +03:00
e385f323eb
Update Menu.php
...
The feature:
http://getbootstrap.com/components/#list-group-linked
Currently, Menu isnt capable of creating a bootstraps list-group-linked because:
- Menu forces a item container around the link
Menu does allow:
- defining the tag of the menu container
- defining the tag of the item container
- defining the template of the link
This means, that it is a small step to enable a menu like the list-group-linked in which:
- menu container is a DIV
- there are no item containers
- there are only links which should get the correct status by the (link)template
I provided a patch in which you can set the item-tag on false. When this is done,
the item tag is ignored and no LI is created, which is necessary for the list-group-linked.
2015-02-24 01:52:00 +03:00
03a9ed70b2
Fixes #6557 : Link URLs generated by yii\widgets\Menu
are not encoded
2014-12-17 22:08:20 -05:00
9ae538e602
Fixed doc [skip ci]
2014-11-27 22:03:31 -05:00
79f9f85ff2
Fixes #4024 , Fixes #4028
2014-06-24 02:43:42 +04:00
85fd823ee6
Added ability to yii\widgets\Menu
to encode each item's label separately (creocoder, umneeq)
2014-06-24 00:34:17 +03:00
f27edcc27d
Fix Menu bug when using template
with encodeLabel
=> false
2014-06-12 20:30:56 +03:00
d2fcbcc0e0
Hide menu container tag when items is empty
2014-05-30 02:19:07 +03:00
0b29c9607d
fixed broken API links [skip ci]
2014-04-09 22:22:49 -04:00
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
2014-03-23 20:51:09 +01:00
b5f8a4dc22
Reformat code te be PSR-2 compatible
2014-03-16 10:46:21 +06:00
ca3b2cd057
Fix some references to removed Html::url in phpdoc
2014-03-11 11:15:21 +01:00
6fff5662df
better use @see for See in phpdoc
2014-03-11 05:38:35 +01:00
c94a40e90d
added a large amount of missing documentation
2014-03-11 05:38:35 +01:00
5d6c314d4e
Adjusted URL helper, fixed usage
2014-03-10 15:25:15 +04:00
92b381795b
Adjusted Url helper methods
2014-03-10 01:34:05 +04:00
3400eb5215
#2630 : yii\heplers\Html::url
moved to new yii\helpers\Url::create
2014-03-09 16:41:55 +04:00
150d71368b
Merge branch 'request-params-refactoring' of github.com:cebe/yii2 into cebe-request-params-refactoring
...
Conflicts:
framework/CHANGELOG.md
2014-01-26 17:41:14 -05:00
c74db68ce7
Fixes #1974 .
2014-01-22 12:55:35 -05:00
e7e6bee928
replaced usages of $_GET with Request::queryParams
2014-01-21 15:13:51 +01:00
0c38655217
psr-4 move
2014-01-10 21:41:43 -05:00
0d814fa523
Moved "framework" to "iii".
2013-05-09 12:00:15 -04:00
17807874b6
Fixes issue #53 : implemented Menu.
2013-05-07 15:46:21 -04:00
48d04fbb8c
!== array() => !empty()
2013-05-07 19:57:27 +04:00