PHP Classes

File: create.php

Recommend this page to a friend!
  Classes of mohamad Reza kavoosi   PHP Menu Generator   create.php   Download  
File: create.php
Role: Example script
Content type: text/plain
Description: create and modify menu at this file
Class: PHP Menu Generator
Generate nested menus with HTML list items
Author: By
Last change:
Date: 8 years ago
Size: 1,048 bytes


Class file image Download
require_once 'menuClass.php';
$menu->addRootItem('item2')->addChild('my profile','','_blank');

//to remove ITEM :
//TO Add css class for MENU,root item,child item :
 $menu->cssClass= "classNames";
 $menu->GetItemByPath('0\1')->cssClass= "classNames";
//TO modify or edit Feature item :
$menu->GetItemByPath('0\0\1')->title = "enter new title";
$item1->title = "enter new title";
if ($menu->save())
"The menu was created,Now you can <a href='index.php'>see menu</a>";