1.不需要配置include一样可以使用smarttemplate只需要在使用的地方加上
  require("path/to/class.smartTemplate.php"); //路径自己改
2. 你的配置文件没有生效,可能是配置后没有重启server,也可能是PHP读取的配置文件与你更改的不是一个文件.

解决方案 »

  1.   

    include_path='C:\php5\pear;C:\PHP5\smarttemplate'重起apache
      

  2.   

    谢谢两位,现在又出如下的错误提示了:<这是怎么回事呢。Warning: fopen(SMART_TEMP_DIR/Alternating_Colors_html.php) [function.fopen]: failed to open stream: No such file or directory in D:\Inetpub\wwwroot\class.smarttemplateparser.php on line 206
    SmartTemplate Compiler Error: Could not write compiled file.
      

  3.   

    smarty需要一个文件编译路径,把那个路径的权限设为apache可写就行了。/*
    $smarty->template_dir = __SITE_ROOT . "templates/";
    $smarty->compile_dir = __SITE_ROOT . "templates_c/";
    */
    templates_c需要设为apache可写权限
      

  4.   

    去村里下个SMARTY教程好好看看
      

  5.   

    晕,smarttemplate 不是 SMARTY