mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
Wrap "null" by the code (...
) + tiny editing (#12231)
This commit is contained in:

committed by
Alexander Makarov

parent
3b7091078b
commit
5731076582
@ -414,10 +414,10 @@ behind the scene Yii takes two steps to determine what is the actual layout file
|
|||||||
|
|
||||||
In the first step, it determines the layout value and the context module:
|
In the first step, it determines the layout value and the context module:
|
||||||
|
|
||||||
- If the [[yii\base\Controller::layout]] property of the controller is not null, use it as the layout value and
|
- If the [[yii\base\Controller::layout]] property of the controller is not `null`, use it as the layout value and
|
||||||
the [[yii\base\Controller::module|module]] of the controller as the context module.
|
the [[yii\base\Controller::module|module]] of the controller as the context module.
|
||||||
- If [[yii\base\Controller::layout|layout]] is null, search through all ancestor modules (including the application itself) of the controller and
|
- If the [[yii\base\Controller::layout]] property of the controller is `null`, search through all ancestor modules (including the application itself) of the controller and
|
||||||
find the first module whose [[yii\base\Module::layout|layout]] property is not null. Use that module and
|
find the first module whose [[yii\base\Module::layout|layout]] property is not `null`. Use that module and
|
||||||
its [[yii\base\Module::layout|layout]] value as the context module and the chosen layout value.
|
its [[yii\base\Module::layout|layout]] value as the context module and the chosen layout value.
|
||||||
If such a module cannot be found, it means no layout will be applied.
|
If such a module cannot be found, it means no layout will be applied.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user