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()`
7 years ago
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".
7 years ago
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
7 years ago
Carsten Brandt
4b9e48b8dc
improved docs: link term "path alias" to the guide
7 years ago
Nikolay Oleynikov
950e895fe0
Fix phpDocumentor annotations ( #13905 ) [skip ci]
8 years ago
Brandon Kelly
5609e918de
Fixed some malformed @var tags ( #13468 ) [skip ci]
8 years ago
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
8 years ago
Alexander Makarov
954c771fdb
Code cleanup ( #13113 )
...
* Simplified code branching, named variable better
* More simple code cleanup
* More consistent line breaks before return statemetns
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
Boudewijn Vahrmeijer
32f4dc8997
Fixes #5385 : links created from classes to corresponding guide articles ( #12920 )
8 years ago
Evgeniy Tkachenko
d0a68883c7
phpDoc of $layout updated
8 years ago
Joel Waldock
20de74d343
Fix spelling in Controller.php
9 years ago
Nikola Kovacs
ff37be0fb8
add doc summary for getUniqueID
...
This way it won't be empty in the table of methods.
9 years ago
Evgeniy Tkachenko
aa0bf9a3c7
phpDoc: Added null to Controller::$layout
9 years ago
SilverFire - Dmitry Naumenko
cd87d67f34
Global DOCS update: ~~~ replaced with ```
9 years ago
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.
9 years ago
Alexander Makarov
5ab4f0f090
Better quotes usage in strings
...
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
9 years ago
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
9 years ago
Carsten Brandt
2f5345b63c
improved beforeAction docs
10 years ago
tom--
70fa53a20f
Update Controller.php and Module.php
...
beforeAction() code style:
1. Return early on error
2. Don't else-after-return
close #7804
10 years ago
Qiang Xue
3c63213de3
Added `yii\base\Controller::renderContent()`
10 years ago
Carsten Brandt
f3a6b1985d
do not call afterAction() if beforeAction returned false
...
fixes #5379
10 years ago
Alexander Makarov
277d8cbaeb
Got rid of console inline action
10 years ago
Alexander Makarov
d74e89a1ca
Extracted inline action object creation, implemented it in console controller in order to use console inline action instead of base one
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
3a1e0f3a5c
property codestyle framework
10 years ago
Qiang Xue
d62f7bebb5
Fixes #4231 : turned Controller::findLayoutFile() from protected to public.
10 years ago
Alexander Makarov
0c14f47f9a
Fixes #3793 : Changed inline autocomplete hints style to get more IDEs support
10 years ago
Qiang Xue
c8cb40cb50
Finished view tutorial [skip ci]
10 years ago
Qiang Xue
b618920326
Fixed the bug that requesting protected or private action methods would cause 500 error instead of 404
10 years ago
Carsten Brandt
c27ac8ef0e
updated phpdoc
11 years ago
Carsten Brandt
0a3f4e85f1
made grid\DataColumn::getDataCellValue() public
...
allow using it from the gridview directly
11 years ago
Carsten Brandt
3fdcf11f24
updated phpdoc
11 years ago
Qiang Xue
50e338127d
Improved action filter and action execution flow by supporting installing action filters at controller, module and application levels
11 years ago
Qiang Xue
92bd71cd84
Fixes #2912 : Relative view files will be looked for under the directory containing the view currently being rendered
11 years ago
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
11 years ago
Qiang Xue
87df068eb0
DI WIP
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Qiang Xue
49010df192
Changed `Controller::afterAction()`, `Module::afterAction()` and `ActionFilter::afterAction()` to pass `$result` by value instead of reference
11 years ago
Carsten Brandt
21ae27b306
updated phpdoc properties
11 years ago
Qiang Xue
aa5e82ec07
Fixes #1965 : `Controller::findLayoutFile()` returns incorrect file path when layout name starts with a slash
11 years ago
Qiang Xue
0c38655217
psr-4 move
11 years ago
Alexander Makarov
4bbd844b23
fixes #1796
11 years ago
Paul Kofmann
934051e804
Small fixes for the sake of consistency
11 years ago
Qiang Xue
323008b177
Fixes #1296 : stricter check of dashes in route.
11 years ago
Qiang Xue
a1f7f8bcbe
Fixes #1335 : support view extension fallback
11 years ago
Qiang Xue
1fe7f5aaf8
Fixes #1335 : findLayoutFile() should respect View::defaultExtension.
11 years ago
Alexander Makarov
af778d1a13
Fixed actions() docs where alias was used to refer to class
11 years ago
Taras Gudz
2617dfbaf3
Removed links to non-existent things phpDocs [skip ci]
11 years ago
Taras Gudz
9b95a81b0c
Fixed the rest phpDocs [skip ci]
11 years ago