mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
ref #12 In a template, you can now allow rendering of a block from other bundle. The layout template must explicitly call the rendering of other block, with the twig function ``` chill_delegated_block('block_name', { 'array' : 'with context' } ) ``` This will launch an event `Chill\MainBundle\Templating\Events\DelegatedBlockRenderingEvent` with the event's name 'chill_block.block_name'. You may add content to the page using the function `DelegatedBlockRenderingEvent::addContent`.