From 669b29e088bc8c73928b958c94521abc74138dc0 Mon Sep 17 00:00:00 2001 From: Dominik Hajduk Date: Sat, 4 Mar 2017 22:21:08 +0100 Subject: [PATCH] Add example views to MicroKernelTrait description --- configuration/micro_kernel_trait.rst | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configuration/micro_kernel_trait.rst b/configuration/micro_kernel_trait.rst index 74a89b24590..46f4373eb75 100644 --- a/configuration/micro_kernel_trait.rst +++ b/configuration/micro_kernel_trait.rst @@ -276,6 +276,18 @@ Template files should live in the ``Resources/views`` directory of whatever dire your *kernel* lives in. Since ``AppKernel`` lives in ``app/``, this template lives at ``app/Resources/views/micro/random.html.twig``. +.. code-block:: html+twig + + + + + Random action + + +

{{ number }}

+ + + Finally, you need a front controller to boot and run the application. Create a ``web/index.php``:: @@ -305,7 +317,6 @@ this: │ ├─ logs/ │ └─ Resources | └─ views - | ├─ base.html.twig | └─ micro | └─ random.html.twig ├─ src/