File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -276,6 +276,18 @@ Template files should live in the ``Resources/views`` directory of whatever dire
276
276
your *kernel * lives in. Since ``AppKernel `` lives in ``app/ ``, this template lives
277
277
at ``app/Resources/views/micro/random.html.twig ``.
278
278
279
+ .. code-block :: html+twig
280
+
281
+ <!DOCTYPE html>
282
+ <html>
283
+ <head>
284
+ <title>Random action</title>
285
+ </head>
286
+ <body>
287
+ <p>{{ number }}</p>
288
+ </body>
289
+ </html>
290
+
279
291
Finally, you need a front controller to boot and run the application. Create a
280
292
``web/index.php ``::
281
293
@@ -305,7 +317,6 @@ this:
305
317
│ ├─ logs/
306
318
│ └─ Resources
307
319
| └─ views
308
- | ├─ base.html.twig
309
320
| └─ micro
310
321
| └─ random.html.twig
311
322
├─ src/
You can’t perform that action at this time.
0 commit comments