Home  >  Q&A  >  body text

Prompt me that the template file does not exist: \tp5\application\index\view\body.html

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}

王先生王先生1836 days ago2405

reply all(2)I'll reply

  • 王先生

    王先生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

    reply
    0
  • 王先生

    王先生2019-11-02 11:34:32

    Find the problem

    extend name="public/base" ; I used extend file before

    reply
    0
  • Cancelreply