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}
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
Find the problem
extend name="public/base" ; I used extend file before