我还没用到过,不过看手册写得挺简单的呀下来包后解压缩,然后手动拷贝所有文件到php/smarty下,
再在WEB server下创建smarty目录,并且里面创建templates,templates_c,cache,configs目录,有写权限使用时require php/Smarty/Smarty.class.php就好了

解决方案 »

  1.   

    smarty不需要安装,你就把它当作一个类文件,把它引进来,然后设置一些属性就行了.require_once "smarty/Smarty.class.php";$tpl = new Smarty();$tpl->template_dir = $g_site_root . "/templates/default/";  //模板目录$tpl->compile_dir = $g_site_root . "/templates_c/";   //编译文件目录$tpl->config_dir = $g_site_root . "/configs/";  //配置文件目录$tpl->cache_dir = $g_site_root . "/cache/";  //cache文件目录$tpl->cache_lifetime = 0;  //cache有效时间$tpl->caching =0;  //是否开启cache$tpl->left_delimiter = '{';   //左标签$tpl->right_delimiter = '}';   //右标签
    然后看手册里面的语法。
      

  2.   

    个人觉得比较完美的smarty教程,含安装http://www.php5.idv.tw/documents/smarty/smarty20040209.htmpear嘛,网上没有完美教程,而且都没解决安装扩展的问题.如果不是必须要用,不装问题也不大.至少,我自己还没到不装那个就不行的程度
      

  3.   

    php目录下有个go-pear.bat文件,运行它,然后看进行设置,我觉得看看pear库的代码还可以,到没有非用它不可的地步。