本文整理汇总了PHP中KTUtil::getRequestScriptName方法的典型用法代码示例。如果您正苦于以下问题:PHP KTUtil::getRequestScriptName方法的具体用法?PHP KTUtil::getRequestScriptName怎么用?PHP KTUtil::getRequestScriptName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KTUtil
的用法示例。
在下文中一共展示了KTUtil::getRequestScriptName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: AdminSplashDispatcher
function AdminSplashDispatcher()
{
$this->aBreadcrumbs = array(array('url' => KTUtil::getRequestScriptName($_SERVER), 'name' => _kt('Administration')));
parent::KTAdminDispatcher();
}
示例2: array
<?php
require_once "../../../config/dmsDefaults.php";
require_once KT_LIB_DIR . "/util/ktutil.inc";
$server = array("REQUEST_URI" => "/presentation/lookAndFeel/knowledgeTree/preferences/editUserPrefsBL/asdf?asdf=1&foo=&", "SCRIPT_NAME" => "/presentation/lookAndFeel/knowledgeTree/preferences/editUserPrefsBL.php");
$expected = "/presentation/lookAndFeel/knowledgeTree/preferences/editUserPrefsBL";
$received = KTUtil::getRequestScriptName($server);
if ($expected !== $received) {
print "FAILED!\n";
print "Expected: {$expected}\n";
print "Received: {$received}\n";
}