Enabling template hints from the CLI (Magento 2)

To enable Magento 2 Template Hints directly from the command line, run the following command in the Magento 2 root directory:

To disable the hints again, run this command:

Clear the Magento 2 cache after either command.

Including one template (phtml) in another template (Magento 2)

To render one .phtml template inside another template, insert the following code at the desired location:

Sending parameters to a static block (Magento 1)

You have to use so called filters to send parameters to a static block from a template for example. Lets take a look at the following code: Thats the static Magento block:

We want to send attribute_set_name and product_id…