Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Eugene Panin  >  OCFLib  >  index.php  >  Download  
File: index.php
Role: ???
Content type: text/plain
Description: Example of using OCF to handle menus
Class: OCFLib
Author: By
Last change:
Date: 13 years ago
Size: 279 bytes
 

Contents

Class file image Download
<?
error_reporting(0);
require 'Menulib.php';
require 'OCFLib.php';
?>
<html>
<body bgcolor=white>
<?
$ocf = new OCFParser('./cat.xml');
$root =& $ocf->getMenu();

$menuid = ($menuid)?$menuid:'';
echo $root->display($menuid,"$PHP_SELF?menuid=");
?>
</body>
</html>