From 199fe352b7d4d40b5c55b3ab18dcca75166a1618 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Sat, 30 Nov 2013 00:31:49 +0400 Subject: [PATCH] Added more explaination of layout to views guide --- docs/guide/view.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/guide/view.md b/docs/guide/view.md index 7161a5a..fdfc061 100644 --- a/docs/guide/view.md +++ b/docs/guide/view.md @@ -277,7 +277,12 @@ use yii\helpers\Html; In the markup above there's some code. First of all, `$content` is a variable that will contain result of views rendered with controller's `$this->render()` method. -TBD +We are importing `Html` helper via standard PHP `use` statement. This helper is typically used for almost all views +where one need to escape outputted data. + +Several special methods such as `beginPage`/`endPage`, `head`, `beginBody`/`endBody` are triggering page rendering events +that are used for registering scripts, links and process page in many other ways. Always include these in your layout in +order for rendering to work correctly. ### Partials