93 Commits

Author SHA1 Message Date
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
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
655786b7ed release version 2.0.44 2021-12-30 10:50:56 +03:00
552593ca3b Prepare for new apidoc (part 2) (#19010)
* Fix broken links for events with different namespace
* Fix broken links in see tag
* Fix broken links in see tag (loadData())
* Fix broken link for var_export()
* Fix broken link for CVE
* Remove redundant markdown link wrap in see tags
* Remove see tags that refer to private properties
* Remove more see tags that refer to private properties
* Remove see tags that refer to private methods
* Remove one more redundant markdown link wrap in see tag [skip ci]
* Fix typo in see tag (causes broken link)
* Remove more see tags that refer to private methods
2021-11-18 10:10:09 +03:00
Leo
9ed87a0ad6 Fix #18858: Reduce memory usage in yii\base\View::afterRender method 2021-09-14 17:41:53 +03:00
51c72b582b Fix types in Controller and View classes (#18397)
* Set yii\base\Controller::actions() return type
* Change yii\base\View::$params type to array
2020-11-19 14:46:13 +03:00
ccb14ff667 release version 2.0.39 2020-11-10 13:58:35 +03:00
166f892f14 Fix #17673: Add note about renderDynamic() and register*() methods [skip ci] 2019-11-19 17:15:38 +03:00
Sam
a8d95f429d Fixes #14636: Views can now use relative paths even when using themed views 2018-05-11 12:50:56 +03:00
22832b7c49 release version 2.0.14 2018-02-19 00:27:09 +02:00
05b85008f8 Updated PHPDocs [skip ci] 2018-02-18 23:12:08 +02:00
e493843b1c improve @deprecated annotations 2018-02-16 11:19:00 +01:00
c382d3e8d4 Fixes #15120: Refactored dynamic caching introducing DynamicContentAwareInterface and DynamicContentAwareTrait 2018-02-13 00:19:01 +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
c1b5240888 Added PHPDoc @throws to yii\base\View::renderPhpFile() [skip ci] 2017-08-28 02:32:27 +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
a50d9d8e3e Enable include rule in php-cs-fixer (#14418) 2017-07-10 13:19:57 +03:00
4b9e48b8dc improved docs: link term "path alias" to the guide 2017-06-02 10:45:20 +02:00
0beb59305c Fixes #13058: Fixed caught exception thrown during view file rendering produces wrong output 2017-06-02 01:30:21 +03:00
954c771fdb Code cleanup (#13113)
* Simplified code branching, named variable better

* More simple code cleanup

* More consistent line breaks before return statemetns
2016-12-03 00:15:53 +03:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
32f4dc8997 Fixes #5385: links created from classes to corresponding guide articles (#12920) 2016-11-04 18:55:14 +03:00
eb02b362be Revert "Replaced extract() function usages with custom polyfill in order to fix HHVM compatibility"
This reverts commit f7bd7c2b6b1b9941e3c50d99e4f07ff17d513cca.
2016-09-07 11:33:57 +03:00
f7bd7c2b6b Replaced extract() function usages with custom polyfill in order to fix HHVM compatibility 2016-09-06 22:50:00 +03:00
9f71bf400e Fixes #12038: Introduced yii\base\ViewNotFoundException which is thrown when views file doesn't exists, used it in ViewAction 2016-07-30 15:07:56 +03:00
cd87d67f34 Global DOCS update: ~~~ replaced with ``` 2015-12-02 23:15:28 +02:00
eec716d88f Fixes #4040: Added $viewFile and $params to the EVENT_BEFORE_RENDER and EVENT_AFTER_RENDER events for View. 2014-10-02 23:36:02 -04:00
0c14f47f9a Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 2014-06-20 17:40:00 +04:00
b489cada30 guide WIP [skip ci] 2014-06-12 20:40:31 -04:00
5b6e79dc14 Fixes #3298: Supported configuring View::theme using a class name 2014-04-30 08:36:28 -04:00
0b29c9607d fixed broken API links [skip ci] 2014-04-09 22:22:49 -04:00
92bd71cd84 Fixes #2912: Relative view files will be looked for under the directory containing the view currently being rendered 2014-03-28 21:54:32 -04:00
67dd874e0c renamed console controller optoins param $id to $actionId 2014-03-26 17:51:52 +01: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
40cb98bb02 updated @property annotations 2014-03-11 16:21:25 +01:00
992f8edcb0 proper implementation of View::viewFile. 2014-02-21 16:41:33 -05:00
97d291ca6a Added View::viewFile and removed ViewEvent::viewFile 2014-02-21 16:31:59 -05: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
b836665dfd Added beginPage and endPage events. 2013-05-08 17:36:34 -04:00
1415c12c5a Changed default value of View::renderers. 2013-05-06 16:34:20 -04:00
4be9e195c2 Add Newlines
Appended newlines to every PHP document that did not have a newline as the last character in the file.
2013-05-05 17:04:55 +01:00
c9895eff82 Fixes issue #110. 2013-05-05 10:06:40 -04:00
3a146a0662 Refactored view renderers. 2013-04-27 13:30:25 -04:00
90cfb6ebb8 ActiveForm wip 2013-04-25 23:17:58 -04:00