Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 8ef51c8

Browse files
committed
Merge branch 'hotfix/631-docs-renderer-examples' into develop
Forward port #631
2 parents daef098 + 7d9079a commit 8ef51c8

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

docs/book/v3/getting-started/quick-start.md

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -590,17 +590,26 @@ The above looks for a query string parameter "target", and uses its value to
590590
provide to the template, which is then rendered and returned in an HTML
591591
response.
592592
593-
Now, let's edit the template file to have the following contents:
594-
595-
```php
596-
<h1>Hello <?= $this->target ?></h1>
597-
```
598-
599-
If you are using Twig, use this instead:
600-
601-
```twig
602-
<h1>Hello {{ target }}</h1>
603-
```
593+
Now, let's edit the template file to have the one of the following header lines
594+
(use the one for your chosen template renderer):
595+
596+
- Plates
597+
```php
598+
<!-- plates -->
599+
<h1>Hello <?= $this->e($target) ?></h1>
600+
```
601+
602+
- zend-view
603+
```php
604+
<!-- zend-view -->
605+
<h1>Hello <?= $this->target ?></h1>
606+
```
607+
608+
- Twig
609+
```twig
610+
<!-- twig -->
611+
<h1>Hello {{ target }}</h1>
612+
```
604613

605614
While the handler is registered with the container, the application does not yet
606615
know how to get to it. Let's fix that.

0 commit comments

Comments
 (0)