跳到内容

testInstall()

检查 Smarty 安装

说明

void

testInstall

此函数验证是否可以访问 Smarty 安装的所有必需的工作文件夹。它输出相应协议。

<?php
use Smarty\Smarty;
$smarty  = new Smarty();
$smarty->testInstall();
?>