Skip to content

Commit 47b94f7

Browse files
committed
Add example views to MicroKernelTrait description
1 parent a5adc30 commit 47b94f7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

configuration/micro_kernel_trait.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,18 @@ Template files should live in the ``Resources/views`` directory of whatever dire
276276
your *kernel* lives in. Since ``AppKernel`` lives in ``app/``, this template lives
277277
at ``app/Resources/views/micro/random.html.twig``.
278278

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+
279291
Finally, you need a front controller to boot and run the application. Create a
280292
``web/index.php``::
281293

0 commit comments

Comments
 (0)