Login   Register  
PHP Classes

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Richard Baskett  >  Breadcrumbs  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example File
Class: Breadcrumbs
Show directory and file path with links
Author: By
Last change: Removed some of the directory specific examples, so that it will work on all systems.
Date: 10 years ago
Size: 637 bytes


Class file image Download
#ini_set('display_errors', 'On');

// See class.breadcrumb.inc.php or the README files for Usage Directions
$breadcrumb = new breadcrumb;
$breadcrumb->homepage='homepage'// sets the home directory name
$breadcrumb->dirformat='ucfirst'// Show the directory in this style
$breadcrumb->symbol=' || '// set the separator between directories 
$breadcrumb->showfile=TRUE// shows the file name in the path
$breadcrumb->linkFile=TRUE// Link the file to itself
$breadcrumb->_toSpace=TRUE// converts underscores to spaces
echo "<p>".$breadcrumb->show_breadcrumb()."</p>";