base content (\public\base)
{include file="public/header1" /}
{block name="body"}
Body
{/block}
{include file="public/footer1" /}
test2 content:
{extend file="public/base" /}
{block name="body"}
<h3>Now I am learning the template inheritance case in website layout</h3>
{/block}
王先生2019-11-02 11:35:23
If a small detail is not handled well, there will be big problems. In addition, there cannot be any spaces in the name="" statement, otherwise an error will be reported