Prompt me that the template file does not exist: \tp5\application\index\view\body.html
王先生
王先生 2019-11-02 11:02:40
0
2
2403

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}

王先生
王先生

reply all(2)
王先生

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!