MySQL
  Home arrow MySQL arrow Page 3 - Data Management Made Easy Using Nenniu...
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Moblin 
JMSL Numerical Library 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MYSQL

Data Management Made Easy Using Nennius: Advanced Data Handling
By: Brian Vaughn
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 6
    2005-08-03

    Table of Contents:
  • Data Management Made Easy Using Nennius: Advanced Data Handling
  • Advanced Application Configuration
  • Expanding Our Application Menu
  • Creating the User Comments Component
  • Creating Component Dependencies
  • Component Notes
  • Help Files
  • File Attachments

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Data Management Made Easy Using Nennius: Advanced Data Handling - Expanding Our Application Menu


    (Page 3 of 8 )

    In part two of this article we created a simple news management application. That application contained only two menu options: one to direct an authenticated user to a form for managing news releases, and another to direct all users to our imaginary company's news release page. That was a great introduction to Nennius development, but not very practical. More often than not, when it comes to data management tools, a wide variety of data is being managed. Because of this, most Nennius applications will deal with more than one component. To add additional components to our example application, we will first start by expanding our menu configuration file as follows:

    <?php

    # include config_defaults file for threshold values

    # NOTE: ignore a failed include for the purposes of the admin GUI

    @ include_once '../../config.defaults.php';

    # intiialize nennius menu array

    $nennius_menu_array    = NULL;

    # Manage Releases - links to Nennius page for adding & removing news releases

    $admin_options_array[]         = ( array(     'menu_display_name'    => 'Manage Releases',

                                          'menu_hyperlink'       => 'index.php',

                                          'menu_threshold'       => $GLOBALS['ADMIN'] ) );

    # Manage Comments - links to Nennius page for adding & removing user comments

    $admin_options_array[]         = ( array(     'menu_display_name'    => 'Manage User Comments',

                                          'menu_hyperlink'       => 'comments.php',

                                          'menu_threshold'       => $GLOBALS['USER'] ) );

    # Corporate Website - links to external corporate website to view changes in realtime

    $public_menu_array[]   = ( array(     'menu_display_name'    => 'Corporate Website',

                                          'menu_hyperlink'       => 'http://www.corporatewebsite.com/news.php',

                                          'menu_threshold'       => $GLOBALS['PUBLIC'] ) );

                                         

    # add all menus to nennius menu array

    $nennius_menu_array['Admin Options']  = $admin_options_array;

    $nennius_menu_array['Public Menu']    = $public_menu_array;

    # globalize nennius menu array for access by Display Template

    $GLOBALS['nennius_menu_array']        = $nennius_menu_array;

    ?>

    The menu configuration file now specifies two menu categories: 'Admin Options' (shown only if a user is logged into the application) and 'Public Menu'. In addition we have also added a new menu link: 'Manage User Comments'. (For the purposes of this article, we will assume that our application's front end allows users to attach comments to a news entry. This new menu option will then allow us to moderate the comments if necessary.) It will also show us another important aspect of Nennius development: how to create meaningful component relationships.

    More MySQL Articles
    More By Brian Vaughn


       · This is the third and final article in this series, and I thank all of you who have...
     

       

    MYSQL ARTICLES

    - Take Some Load off MySQL with MemCached
    - MySQL Table Prefix Changer Tool in PHP
    - Using the SIGNAL Statement for Error Handling
    - Error Handling Examples
    - Error Handling
    - Completing a Search Engine with MySQL and PH...
    - Paginating Result Sets for a Search Engine B...
    - Building a Search Engine with MySQL and PHP 5
    - Using Boolean Operators for Full Text and Bo...
    - PHP, MySQL and the PEAR Database
    - Working with PHP and MySQL
    - Getting PHP to Talk to MySQL
    - Creating an RSS Reader: the Reader
    - MySQL Security Overview
    - Creating the Admin Script for a PHP/MySQL Bl...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway