【发布时间】:2017-12-12 13:01:15
【问题描述】:
我有一个模板类,我可以通过它回显文件。 我将文件的地址提供给模板类并将其回显。 我有 4 个文件名为:索引、主题、主题、寄存器,它们都做得很好,但 topic.php 是空的。这是我的代码,例如寄存器控制器文件中的寄存器。我该怎么办?谢谢。
<?php
$template = new template('templates/register.php');//include the template
//display template
echo $template;
【问题讨论】:
标签: php html model-view-controller