Commit 8814955a by Qiang Xue

Merge pull request #1330 from plusodinminus/patch-1

Docs typos [; before ?> in view]
parents 1d0bc00c 4bc205ae
...@@ -93,14 +93,14 @@ This will create all the `<label>`, `<input>` and other tags according to the te ...@@ -93,14 +93,14 @@ This will create all the `<label>`, `<input>` and other tags according to the te
To add these tags yourself you can use the `Html` helper class. The following is equivalent to the code above: To add these tags yourself you can use the `Html` helper class. The following is equivalent to the code above:
```php ```php
<?= Html::activeLabel($model, 'password'); ?> <?= Html::activeLabel($model, 'password') ?>
<?= Html::activePasswordInput($model, 'password'); ?> <?= Html::activePasswordInput($model, 'password') ?>
<?= Html::error($model, 'password'); ?> <?= Html::error($model, 'password') ?>
or or
<?= Html::activeLabel($model, 'username', ['label' => 'name']); ?> <?= Html::activeLabel($model, 'username', ['label' => 'name']) ?>
<?= Html::activeTextInput($model, 'username'); ?> <?= Html::activeTextInput($model, 'username') ?>
<?= Html::error($model, 'username'); ?> <?= Html::error($model, 'username') ?>
<div class="hint-block">Please enter your name</div> <div class="hint-block">Please enter your name</div>
``` ```
...@@ -254,24 +254,24 @@ basic one without any widgets or extra markup. ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment