Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Smarty()与SmatyC()的比较_Php_Smarty2 - Fatal编程技术网

Php Smarty()与SmatyC()的比较

Php Smarty()与SmatyC()的比较,php,smarty2,Php,Smarty2,我发现以前的网页是用Smarty2写的,我不明白这一点。你能告诉我以下两者的区别吗 $_Html = new SmartyC(TRUE); and $_Html = new Smarty(); 我在手册中找不到SmartyC()。在整个网站项目中搜索类SmartyC。我假设,您将找到一个自定义类,它以某种方式扩展了原始Smarty类,如: class SmartyC extends Smarty { function _construct($b) { // do somethi

我发现以前的网页是用Smarty2写的,我不明白这一点。你能告诉我以下两者的区别吗

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

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

在整个网站项目中搜索
类SmartyC
。我假设,您将找到一个自定义类,它以某种方式扩展了原始Smarty类,如:

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

也许SmartyC是一个扩展原始Smarty类的自定义类?它是Smarty编译器的构造函数