diff --git a/docs/guide/structure-views.md b/docs/guide/structure-views.md index 2391a6d294..61a94c2e95 100644 --- a/docs/guide/structure-views.md +++ b/docs/guide/structure-views.md @@ -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.