我在Linux上想写个用smarty模版的程序,但是一直什么都不显示,目录结构是:
--Home/libs
--Home/templates
--Home/templates/login.htm
--Home/templates_c
--Home/index.php我的index.php代码是:
<?php
include "./libs/Smarty.class.php";
$smarty=new Smarty();
$smart->assign("title", "这是一个标题");
$smarty->assign("content", "这是内容");
$smarty->display("login.htm");
?>login.htm代码是: <html>
<head>
<title>{$title}</title>
</head>
<body>{$content}</body>
</html>
可是页面显示“可能”配置错误。在网上查也没找出原因?
求大牛指教…………
--Home/libs
--Home/templates
--Home/templates/login.htm
--Home/templates_c
--Home/index.php我的index.php代码是:
<?php
include "./libs/Smarty.class.php";
$smarty=new Smarty();
$smart->assign("title", "这是一个标题");
$smarty->assign("content", "这是内容");
$smarty->display("login.htm");
?>login.htm代码是: <html>
<head>
<title>{$title}</title>
</head>
<body>{$content}</body>
</html>
可是页面显示“可能”配置错误。在网上查也没找出原因?
求大牛指教…………
The website encountered an error while retrieving http://127.0.0.1/Home/. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.