本文整理匯總了PHP中Path::root方法的典型用法代碼示例。如果您正苦於以下問題:PHP Path::root方法的具體用法?PHP Path::root怎麽用?PHP Path::root使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Path
的用法示例。
在下文中一共展示了Path::root方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: ini
public static function ini()
{
$path = "{$_SERVER['REQUEST_URI']}";
$paths = explode('/', $path);
$root = "";
$base = "";
//
self::$root = self::getRoot();
self::$host = self::getHost();
self::$base = self::$host . self::$root;
//
self::$app = self::$host . self::$root . "app";
//self::$app="app";
self::$core = self::$host . self::$root . "core";
self::$public = self::$host . self::$root . "public";
//
self::$path = "http://{$_SERVER['HTTP_HOST']}/";
}
示例2: SetRoot
static function SetRoot($root)
{
self::$root = $root;
}
示例3: foreach
<div id="tabs" class="ui-form">
<ul>
<li><a href="#tab-1">설치결과</a></li>
</ul>
<div id="tab-1">
<p class="warn">매직보드를 설치를 완료하였습니다.</p>
<div class="tip"><?php
foreach ($this->msg as $v) {
?>
<p><?php
echo $v;
?>
</p><?php
}
?>
</div>
<div class="buttonset right">
<input type="button" class="button hover next" value="홈으로 이동" onclick="location.href='<?php
echo Path::root();
?>
';"/>
</div>
</div>
</div><!-- #tabs -->
<div id="footer">
<address>Copyright (c) Since 2009-2012. All rights reserved by <a class="popup" href="http://www.webmona.com/">Webmona.</a></address>
</div>
</body>
</html>