回答編集履歴
3
modify
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
// Register your template directory.
|
24
24
|
|
25
|
-
// As a good news, you could specify multiple directories with an a
|
25
|
+
// As a good news, you could specify multiple directories with an array.
|
26
26
|
|
27
27
|
$loader = new Twig_Loader_Filesystem('/path/to/templates');
|
28
28
|
|
2
modify
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
// Register your template directory.
|
24
24
|
|
25
|
-
// As good news, you could specify multiple directories with an associative array.
|
25
|
+
// As a good news, you could specify multiple directories with an associative array.
|
26
26
|
|
27
27
|
$loader = new Twig_Loader_Filesystem('/path/to/templates');
|
28
28
|
|
1
modify
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
// Register your template directory.
|
24
24
|
|
25
|
-
// As good new, you c
|
25
|
+
// As good news, you could specify multiple directories with an associative array.
|
26
26
|
|
27
27
|
$loader = new Twig_Loader_Filesystem('/path/to/templates');
|
28
28
|
|
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
|
42
42
|
|
43
|
-
_3. Then render your template with an associative array that you created before. In this way, the associative array will be binded to values of Twig.
|
43
|
+
_3. Then, render your template with an associative array that you created before. In this way, the associative array will be binded to values of Twig.
|
44
44
|
|
45
45
|
|
46
46
|
|
@@ -52,7 +52,7 @@
|
|
52
52
|
|
53
53
|
|
54
54
|
|
55
|
-
_4. So, you could use values as a key in your Twig template.
|
55
|
+
_4. So, you could use values as that key in your Twig template.
|
56
56
|
|
57
57
|
|
58
58
|
|
@@ -71,3 +71,7 @@
|
|
71
71
|
</html>
|
72
72
|
|
73
73
|
```
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
Let's enjoy!
|