Wrap "null" by the code (...) + tiny editing (#12231)

This commit is contained in:
Roman Grinyov
2016-08-21 13:49:38 +03:00
committed by Alexander Makarov
parent 3b7091078b
commit 5731076582

View File

@ -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:
- 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.
- If [[yii\base\Controller::layout|layout]] 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
- 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
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.