本文整理汇总了PHP中route::has方法的典型用法代码示例。如果您正苦于以下问题:PHP route::has方法的具体用法?PHP route::has怎么用?PHP route::has使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类route
的用法示例。
在下文中一共展示了route::has方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
echo $sessid;
?>
</li>
<li>
<!-- We safely hashed a password for storage -->
<strong>Password Hash:</strong> <?php
echo $pwd;
?>
</li>
</ul>
<?php
// Detect $_GET variables
if (route::has('do_bcrypt')) {
// Skips password hashing (by default) for demo purposes of showing route::has() feature
echo '<h3><a href="./ext">Don\'t hash password?</a> Skipping hashing will load this page faster!</h3>';
} elseif (!route::has('do_bcrypt')) {
// Performs a secure password hash using the io::helper('security')->hash() method
echo '<h3><a href="./ext?do_bcrypt=true">Hash Password?</a> Will take a moment longer to load...</h3>';
}
/*
* Notice how the $key => $variables transferred over into the view. The variables
* from demo.php are not available, we only access what was passed to the view
* via the array containing the $key => $value pairs. Another look at the code:
*/
/*
* View loaded from application/models/demo.php
*
$page = io::view('welcome', array(
'name' => $first.' '.$last,
'bday' => $dob,
'bday_ago' => $birthday,