变量传到模板里没有值?index.php
<?php
$a="测试";
include "1.phtml";
?>1.phtml
<html>
<body>
<?php echo $a ?>
</body>
</html>index.php页面没有任何显示,晕
也就是变量$a没有输出怎么回事?
<?php
$a="测试";
include "1.phtml";
?>1.phtml
<html>
<body>
<?php echo $a ?>
</body>
</html>index.php页面没有任何显示,晕
也就是变量$a没有输出怎么回事?
如果在一个目录下是能显示出来的。
那就应该能显示,我在IE和FF下都可以显示出来。
echo $a//这里少了分号,不知道有没有关系!