我在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>
可是页面显示“可能”配置错误。在网上查也没找出原因?
求大牛指教…………

解决方案 »

  1.   

    Server error
    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.
      

  2.   

    其他的php页面可以访问么? 重启下apache试试。
      

  3.   

    其他的页面可以访问,在window下这样做能够访问。但在linux下就不行……