Skip to content

Commit e634637

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

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

configuration/micro_kernel_trait.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,17 @@ 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+
<!DOCTYPE html>
281+
<html>
282+
<head>
283+
<title>Random action</title>
284+
</head>
285+
<body>
286+
<p>{{ number }}</p>
287+
</body>
288+
</html>
289+
279290
Finally, you need a front controller to boot and run the application. Create a
280291
``web/index.php``::
281292

0 commit comments

Comments
 (0)