Browse Source

Update view.md

tags/2.0.0-beta
Алексей 11 years ago
parent
commit
c147fb2585
  1. 10
      docs/guide/view.md

10
docs/guide/view.md

@ -254,24 +254,24 @@ basic one without any widgets or extra markup.
<?php <?php
use yii\helpers\Html; use yii\helpers\Html;
?> ?>
<?php $this->beginPage(); ?> <?php $this->beginPage() ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>"> <html lang="<?= Yii::$app->language ?>">
<head> <head>
<meta charset="<?= Yii::$app->charset ?>"/> <meta charset="<?= Yii::$app->charset ?>"/>
<title><?= Html::encode($this->title) ?></title> <title><?= Html::encode($this->title) ?></title>
<?php $this->head(); ?> <?php $this->head() ?>
</head> </head>
<body> <body>
<?php $this->beginBody(); ?> <?php $this->beginBody() ?>
<div class="container"> <div class="container">
<?= $content ?> <?= $content ?>
</div> </div>
<footer class="footer">© 2013 me :)</footer> <footer class="footer">© 2013 me :)</footer>
<?php $this->endBody(); ?> <?php $this->endBody() ?>
</body> </body>
</html> </html>
<?php $this->endPage(); ?> <?php $this->endPage() ?>
``` ```
In the markup above there's some code. First of all, `$content` is a variable that will contain result of views rendered In the markup above there's some code. First of all, `$content` is a variable that will contain result of views rendered

Loading…
Cancel
Save