模板标签里面
模板.html中引入php判断内容。根据不同判断调用不同的模板,代码这样写总是报错,哪位大侠看下?
{template "header.html"}
<?php
if(a == 1){
{template "zhizhuxianshi.html"}
}
else
{
{template "yonghuxianshi.html"}
}
?>
{template "footer.html"}请问正确的php有高手懂吗
<?php if(a == 1){ ?> {template "zhizhuxianshi.html"} <?php } else { ?> {template "yonghuxianshi.html"} <?php } ?>