2015-04-07 63 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安裝的文件夾。
相關問題