2015-04-07 64 views

回答

0

对于smarty,您不需要任何特殊安装。你只是需要一个文件名为作为Smarty.class.php

我建议你去看看在Smarty Official Page which tells about Installation

这里是给那边

<?php 
// NOTE: Smarty has a capital 'S' 
require_once('Smarty.class.php'); #This is the file you need to require 
$smarty = new Smarty(); 
?> 

注意一个简单的例子:

  1. 您需要提供您在项目文件夹中提取Smarty的确切路径。
  2. 如果您在Linux系统上使用,那么您将读取权限授予Smarty安装的文件夹。
相关问题