findtemplate.php
来自「PHP 知识管理系统(基于树结构的知识管理系统), 英文原版的PHP源码。」· PHP 代码 · 共 22 行
PHP
22 行
<?php
require_once("../../config/dmsDefaults.php");
require_once(KT_LIB_DIR . "/templating/templating.inc.php");
error_reporting(E_ALL);
$oTemplating = new KTTemplating();
$oTemplating->aLocationRegistry = array(
"test" => "tests/templating/mytemplates",
);
$aExpectedRet = array("smarty", KT_DIR . "/tests/templating/mytemplates/findTemplate.smarty");
$aRet = $oTemplating->_findTemplate("findTemplate");
if ($aRet === $aExpectedRet) {
print "Success!\n";
} else {
print "Expected: $aExpectedRet\n";
print "Got: $aRet\n";
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?