當前位置: 首頁>>代碼示例>>PHP>>正文


PHP uri::path方法代碼示例

本文整理匯總了PHP中uri::path方法的典型用法代碼示例。如果您正苦於以下問題:PHP uri::path方法的具體用法?PHP uri::path怎麽用?PHP uri::path使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在uri的用法示例。


在下文中一共展示了uri::path方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: path

 function path($key = null, $default = null)
 {
     $path = self::$path;
     if (!$path) {
         $path = url::strip_query(self::raw());
         $path = (array) str::split($path, '/');
         self::$path = $path;
     }
     if ($key === null) {
         return $path;
     }
     return a::get($path, $key, $default);
 }
開發者ID:o-github-o,項目名稱:jQuery-Ajax-Upload,代碼行數:13,代碼來源:uri.php

示例2:

?>
">Home</a> | 
			<a href="<?php 
echo uri::path('list/create');
?>
">Create</a> |
			<a href="<?php 
echo uri::path('page/tools');
?>
">Tools</a> |
			<a href="<?php 
echo uri::path('page/help');
?>
">Help</a> |
			<a href="<?php 
echo uri::path('page/about');
?>
">About</a> |
			<a href="http://github.com/jmhobbs/MkLst" target="_blank">GitHub</a>
		</div>
		<div id="core">
			<?php 
if (isset($flash)) {
    ?>
				<div class="flash">
					<?php 
    echo $flash;
    ?>
				</div>
			<?php 
}
開發者ID:jmhobbs,項目名稱:MkLst,代碼行數:31,代碼來源:layout.php

示例3:

<h1>Welcome To MkLst</h1>

<p>
	Make lists. Print them. Share them.
</p>

<p>
	<a href="<?php 
echo uri::path('page/about');
?>
">Learn More</a>
</p>

<h2>Try It</h2>
<p>
	<form action="<?php 
echo uri::path('list/create');
?>
">
		<button>Create A New List</button>
		or, see <a href="http://mklst.com/list/view/66e3cba5510364250589121cfc0793dddd31f20b">if I'm keeping up with my lawn work.</a>
	</form>
</p>

<h2>See It</h2>
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/mW6k4TiJdTg&hl=en_US&fs=1&color1=0x3a3a3a&color2=0x999999"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/mW6k4TiJdTg&hl=en_US&fs=1&color1=0x3a3a3a&color2=0x999999" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>
開發者ID:jmhobbs,項目名稱:MkLst,代碼行數:26,代碼來源:index.php

示例4:

<p>
	<em>Lasciate ogne speranza, voi ch'intrate.</em>
</p>

<p>
	This can not be undone.
</p>

<h2>Fine, I get it.</h2>

<form method="POST">
	<?php 
if ($is_protected) {
    ?>
	<label for="password">List Delete Password:</label>
	<input id="password" name="password" type="password" />
	<br/>
	<?php 
}
?>
	
	<label for="yesimsure">Yes, I'm sure.</label>
	<input type="checkbox" value="yes" name="yesimsure" id="yesimsure" />
	<br/>
	
	<input type="submit" value="Delete List" class="label-offset" /> or  <a href="<?php 
echo uri::path('list/view/' . $id);
?>
">Cancel</a>
</form>
開發者ID:jmhobbs,項目名稱:MkLst,代碼行數:30,代碼來源:delete.php

示例5:

<h3>Reordering Items</h3>
<p>
	<img src="<?php 
echo uri::path('img/help/reorder-items.png');
?>
" /><br/>
	Click and drag the item you want to where you want it. Release.
</p>

<h3>Strikethrough An Item</h3>
<p>
	<img src="<?php 
echo uri::path('img/help/strikethrough-item-1.png');
?>
" /><br/>
	Click on the item to edit it. Add a single dash "-" to the very front of the item. Hit "enter" to save."<br/>
	<img src="<?php 
echo uri::path('img/help/strikethrough-item-2.png');
?>
" /><br/>
</p>

<hr/>

<a name="bugs"></a>
<h2>Reporting Bugs &amp; Requesting Features</h2>

<p>
	All version control and issue management is done via <a href="http://github.com/jmhobbs/MkLst">our GitHub page</a>.
</p>
開發者ID:jmhobbs,項目名稱:MkLst,代碼行數:30,代碼來源:help.php

示例6:

<h1>MkLst Tools</h1>

<ul>
	<li><a href="<?php 
echo uri::path('list/create');
?>
">Create New List</a></li>
	<li><a href="<?php 
echo uri::path('tools/recover');
?>
">List Recovery</a></li>
</ul>
開發者ID:jmhobbs,項目名稱:MkLst,代碼行數:12,代碼來源:tools.php

示例7:

	<span class="context-link">(<a href="<?php 
    echo uri::path('list/edit/' . $alist->getId());
    ?>
">Edit</a>)</span>
	<?php 
} else {
    ?>
	<span class="context-link">(<a href="<?php 
    echo uri::path('list/view/' . $alist->getId());
    ?>
">View</a>)</span>
	<?php 
}
?>
	<span class="context-link">(<a href="<?php 
echo uri::path('list/delete/' . $alist->getId());
?>
">Delete</a>)</span>
</h1>

<?php 
if ($edit) {
    ?>
<div class="buttons">
	<button class="add">Add Item +</button>
	<button class="save">Save</button>
	<ul class="trash"><li class="ignore">Trash</li></ul>
</div>
<?php 
}
?>
開發者ID:jmhobbs,項目名稱:MkLst,代碼行數:31,代碼來源:view.php


注:本文中的uri::path方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。