released on 06 September 2007, has been downloaded for 172 times.
Please visit phpNavigation ver 0.1.0 to get more information.
phpNavigation ver 0.0.2 Documentation
Please read the INSTALL file for installation instructions.
This application will allows you to apply navigation menu to your web site in a simple way. Build your navigation structure and view it in three different mode (path/menu/sitemap).
Building navigation structure:
Go to Tools page, you'll see root of navigation structure and a form consist of 3 form-field which is describe below.
- Order => Determines order of the navigation item.
- Caption => The caption of navigation item.
- Link => The URL of navigation item.
After full filling the form click "Add" button and you can see there new item listed with links to edit and del. To create sub item click on the navigation caption and you'll see the sub structure table and addition form.
Editing and Deleting navigation structure:
Click the link "edit" to edit and "del" to remove the item from the list. For deletion you will be confirm before the deletion proceed.
$db_user is the username of your database.
$db_pass is the password of your database.
$db_name is the name of the database where application can find its tables.
$db_host is the hostname of the MySQL database.
$tbl_nav_data is the name of the Navigation data database table
$nav_dirpath is the directory path where you installed the application
$nav_reqpath is the directory path where application can find its required modules
$nav_incpath is the directory path where application can find its include files
$nav_baseurl is base URL where you can browse the application
$nav_imageurl is the URL where images can be browse
$nav_separator is a separator between navigation item in path-view navigation like below:
"home > about > profile" or "home / about / profile" (without double quote).
Integrating the phpNavigation into your code
To integrate navigation into your code, you have to include nav_config.php and navigation.php into your script. These files are in your phpNavigation-require-installation-directory. phpNavigation provide three functions to display navigation.
To use the function you must know the ID of the navigation item which you can find it at View page. There is ID and links "Path", "Menu" and "Sitemap" that if you click it will print out a preview and code snippet on how to integrate this navigation into your website. The ID plays an important role as it is used to identify where is the navigation structure should read from.
string nav_path(int $nav_id );
To display navigation path like "home > about > profile" you can call this function. $nav_id is the navigation ID. You can simply copy the example code snippet which provide by clicking the Path link on the View page.
string nav_menu(int $nav_id );
To display navigation menu you can call this function. $nav_id is the navigation ID. You can simply copy the example code snippet which provide by clicking the Menu link on the View page.
string nav_map(int $nav_id );
To display navigation sitemap you can call this function. $nav_id is the navigation ID. You can simply copy the example code snippet which provide by clicking the Sitemap link on the View page.
Remember before you calling those three function you must include these two files at the top of your script page.