Commit Graph

86 Commits

Author SHA1 Message Date
Vladimir Reznichenko
14984328e5 SCA with Php Inspections (EA Ultimate) (#16105) 2018-04-16 13:22:54 +03:00
Brandon Kelly
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
Robert Korulczyk
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
Robert Korulczyk
1501c659ac Add empty lines before return statements. (#14682) [skip ci] 2017-08-21 01:58:49 +03:00
Carsten Brandt
4b9e48b8dc improved docs: link term "path alias" to the guide 2017-06-02 10:45:20 +02:00
Nikolay Oleynikov
950e895fe0 Fix phpDocumentor annotations (#13905) [skip ci] 2017-04-02 21:49:09 +03:00
Brandon Kelly
5609e918de Fixed some malformed @var tags (#13468) [skip ci] 2017-01-30 11:42:52 +03:00
Carsten Brandt
65e4a28800 consistent behavior for Yii::$app->controller and ->action (#13167)
Fixed inconsistency, `Yii::$app->controller` is available
after handling the request since 2.0.10, this is now also the case for
`Yii::$app->controller->action`.

fixes #12795
2016-12-08 18:00:05 +01:00
Alexander Makarov
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
Robert Korulczyk
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
Boudewijn Vahrmeijer
32f4dc8997 Fixes #5385: links created from classes to corresponding guide articles (#12920) 2016-11-04 18:55:14 +03:00
Evgeniy Tkachenko
d0a68883c7 phpDoc of $layout updated 2016-05-13 14:18:19 +03:00
Joel Waldock
20de74d343 Fix spelling in Controller.php 2016-04-04 06:21:33 +02:00
Nikola Kovacs
ff37be0fb8 add doc summary for getUniqueID
This way it won't be empty in the table of methods.
2016-03-28 15:06:13 +02:00
Evgeniy Tkachenko
aa0bf9a3c7 phpDoc: Added null to Controller::$layout 2016-03-23 16:37:42 +03:00
SilverFire - Dmitry Naumenko
cd87d67f34 Global DOCS update: ~~~ replaced with ``` 2015-12-02 23:15:28 +02:00
Luis Hernández
d08ef83e2a Controller->viewPath can be set, fixes #10086
Added setViewPath() that allows setting the base path for the
controller's views. Changed getViewPath() to return the value that was
explicitly set, before defaulting to the usual module-based path.
2015-11-21 19:28:06 +02:00
Alexander Makarov
5ab4f0f090 Better quotes usage in strings
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
2015-10-10 00:23:52 +03:00
namlier
cf2c722a1f update comments in \yii\base\Controller
I had problems with understanding of why AccessControll filter didn't work, as i wish, with PageCache. Then i remembered the quote "The validation rules are evaluated in the order they are listed." from guide http://www.yiiframework.com/doc-2.0/guide-input-validation.html#declaring-rules, but when i tried to redirect some certain user using beforeAction(), as you advised, it didn't work.

close #9717
2015-09-19 17:09:35 +02:00
Carsten Brandt
2f5345b63c improved beforeAction docs 2015-03-21 12:13:03 +01:00
tom--
70fa53a20f Update Controller.php and Module.php
beforeAction() code style:

1. Return early on error
2. Don't else-after-return

close #7804
2015-03-21 12:10:25 +01:00
Qiang Xue
3c63213de3 Added yii\base\Controller::renderContent() 2014-11-16 23:16:37 -05:00
Carsten Brandt
f3a6b1985d do not call afterAction() if beforeAction returned false
fixes #5379
2014-10-07 15:21:21 +02:00
Carsten Brandt
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
Qiang Xue
d62f7bebb5 Fixes #4231: turned Controller::findLayoutFile() from protected to public. 2014-07-09 17:12:49 -04:00
Alexander Makarov
0c14f47f9a Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 2014-06-20 17:40:00 +04:00
Qiang Xue
c8cb40cb50 Finished view tutorial [skip ci] 2014-06-15 18:16:11 -04:00
Qiang Xue
b618920326 Fixed the bug that requesting protected or private action methods would cause 500 error instead of 404 2014-05-29 20:01:47 -04:00
Carsten Brandt
c27ac8ef0e updated phpdoc 2014-04-26 03:39:46 +02:00
Carsten Brandt
0a3f4e85f1 made grid\DataColumn::getDataCellValue() public
allow using it from the gridview directly
2014-04-22 13:51:54 +02:00
Carsten Brandt
3fdcf11f24 updated phpdoc 2014-04-09 18:51:45 +02:00
Qiang Xue
50e338127d Improved action filter and action execution flow by supporting installing action filters at controller, module and application levels 2014-04-04 23:30:59 -04:00
Qiang Xue
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
Carsten Brandt
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
Qiang Xue
87df068eb0 DI WIP 2014-03-20 19:54:52 -04:00
SonicGD
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
Qiang Xue
49010df192 Changed Controller::afterAction(), Module::afterAction() and ActionFilter::afterAction() to pass $result by value instead of reference 2014-02-27 10:52:17 -05:00
Carsten Brandt
21ae27b306 updated phpdoc properties 2014-01-28 00:11:18 +01:00
Qiang Xue
aa5e82ec07 Fixes #1965: Controller::findLayoutFile() returns incorrect file path when layout name starts with a slash 2014-01-14 08:29:47 -05:00
Qiang Xue
0c38655217 psr-4 move 2014-01-10 21:41:43 -05:00
Qiang Xue
0d814fa523 Moved "framework" to "iii". 2013-05-09 12:00:15 -04:00
Qiang Xue
17807874b6 Fixes issue #53: implemented Menu. 2013-05-07 15:46:21 -04:00
Alexander Kochetov
48d04fbb8c !== array() => !empty() 2013-05-07 19:57:27 +04:00
Qiang Xue
06fa0259b5 Added Controller::populate(). 2013-04-29 23:13:10 -04:00
Qiang Xue
a578938df7 Added beforeAction and afterAction to Module. 2013-04-24 18:59:54 -04:00
Qiang Xue
5b412b8f84 script WIP 2013-04-16 17:42:31 -04:00
Qiang Xue
31777c9231 Fixed render issue. 2013-04-05 12:43:55 -04:00
Qiang Xue
c32a202d82 refactored MVC. 2013-03-31 20:21:29 -04:00
Qiang Xue
2fd87fb6d0 User WIP 2013-03-28 08:28:03 -04:00
Qiang Xue
884977a724 renamed util to helpers. 2013-03-23 15:32:26 -04:00