block

1.0 1.1 1.2 1.3

block — Defines a block that can be extended by a child template

Description

<?php
block(string $name)
  • name: block name, create a new block with that same name in the child template to override it

Read the template inheritance page for more details and examples.