layout.html:
{block name="header"} this is header {/block}<br>
{block name="nav"} this is nav {/block><br>
{block name="centent"} this is content {/block}<br>
{block name="right-1"} this is right-1 {/block}<br>
{block name="right-2"} this is right-2 {/block}<br>
{block name="footer"} this is footer {/block}<br>
html:
{extend name="master/layout" /}
原因:语句没有问题,细节出问题啦。
在layout.html中
图中划线的地方出现了空格。
把这些空格删掉了就能正常输出啦!!!!