2013-05-16 14 views
0

我發現用Smarty2寫的舊網頁,我不明白這一點。你能告訴我之間的區別:Smarty()vs SmatyC()

$_Html = new SmartyC(TRUE); 
and 
$_Html = new Smarty(); 

我在手冊中找不到SmartyC()。

+2

也許SmartyC是一個自定義類,它擴展了原來的Smarty類? – Alexxus

回答

0

搜索整個網站爲class SmartyC的項目。我認爲,你會發現一個自定義的類,它擴展了原來的Smarty類以某種方式,如:

class SmartyC extends Smarty 
{ 
    function _construct($b) 
    { 
    // do something with $b like 
    // if($b) 
    // { 
    // $this->caching = true; 
    // } 
    } 
} 
+0

Thx。我發現了它。 – user2389307

+0

它是smarty編譯器的構造函數 – user2389307