File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,7 @@ and add the following to it::
62
62
}
63
63
64
64
You also need to create the file to run at the command line which creates
65
- an ``Application `` and adds commands to it:
66
-
67
- .. code-block::php
65
+ an ``Application `` and adds commands to it::
68
66
69
67
#!/usr/bin/env php
70
68
# app/console
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ template associated to a reference.
44
44
The :method: `Symfony\\ Component\\ Templating\\ PhpEngine::render ` method executes
45
45
the file `views/hello.php ` and returns the output text.
46
46
47
- .. code-block::php
47
+ .. code-block :: php
48
48
49
49
<!-- views/hello.php -->
50
50
Hello, <?php echo $firstname ?>!
@@ -54,7 +54,7 @@ Template Inheritance with Slots
54
54
55
55
The template inheritance is designed to share layouts with many templates.
56
56
57
- .. code-block::php
57
+ .. code-block :: php
58
58
59
59
<!-- views/layout.php -->
60
60
<html >
@@ -69,7 +69,7 @@ The template inheritance is designed to share layouts with many templates.
69
69
The :method: `Symfony\\ Templating\\ PhpEngine::extend ` method is called in the
70
70
sub-template to set its parent template.
71
71
72
- .. code-block::php
72
+ .. code-block :: php
73
73
74
74
<!-- views/page.php -->
75
75
<?php $view->extend('layout.php') ?>
You can’t perform that action at this time.
0 commit comments