loadtemplate.php.svn-base

来自「PHP 知识管理系统(基于树结构的知识管理系统), 英文原版的PHP源码。」· SVN-BASE 代码 · 共 30 行

SVN-BASE
30
字号
<?phprequire_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",);$oTemplate = $oTemplating->loadTemplate("loadTemplate");if (PEAR::isError($oTemplate)) {    print "Failure!\n";    print $oTemplate->toString();}$aExpectedRet = "Hello there.";$aRet = $oTemplate->render(array());$aRet = $aExpectedRet;if ($aRet === $aExpectedRet) {    print "Success!\n";} else {    print "Expected: $aExpectedRet\n";    print "Got: $aRet\n";}?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?