Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (20 sloc) 0.539 kb
<?php
/**
* Basic usage example for HTML_Menu, showing all available menu types
*
* @category HTML
* @package HTML_Menu
* @author Alexey Borzov <avb@php.net>
* @version CVS: $Id$
* @ignore
*/
require_once 'HTML/Menu.php';
require_once './data/menu.php';
$types = array('tree', 'urhere', 'prevnext', 'rows', 'sitemap');
$menu =& new HTML_Menu($data);
$menu->forceCurrentUrl('/item1.2.2.php');
foreach ($types as $type) {
echo "\n<h1>Trying menu type &quot;{$type}&quot;</h1>\n";
$menu->show($type);
}
?>
Jump to Line
Something went wrong with that request. Please try again.