getBreadcrumb() 공개 정적인 메소드

Returns directory data for all levels of the given path to be used when displaying a breadcrumb.
public static getBreadcrumb ( string $path = '/' ) : array
$path string
리턴 array
예제 #1
0
  <div id="contents">
    
    <div class="breadcrumb">
      Index of 
      <ul>
        <li>
          <a href="<?php 
echo $config['base-path'];
?>
/"><?php 
echo $config['bucket-name'];
?>
/</a>
        </li>
        <?php 
foreach (S3Browser::getBreadcrumb($dir) as $key => $name) {
    ?>
        <?php 
    if ($key != '/') {
        ?>
        <li><a href="<?php 
        echo $config['base-path'];
        ?>
/<?php 
        echo $name;
        ?>
"><?php 
        echo $key;
        ?>
/</a></li>
        <?php