MySQL
  Home arrow MySQL arrow Data Management Made Easy Using Nennius: Creating a Web Application
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBMฎ developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
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? 
Google.com  
MYSQL

Data Management Made Easy Using Nennius: Creating a Web Application
By: Brian Vaughn
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 10
    2005-07-27


    Table of Contents:
  • Data Management Made Easy Using Nennius: Creating a Web Application
  • Configuring a Web Application and Defining Its Menu
  • Creating SQL Tables
  • Creating a Nennius Component, Defining the Entry-Point, and the Descriptor File
  • The Component File

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log 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: Creating a Web Application
    ( Page 1 of 5 )

    Previously, we took a look at the Nennius engine and discussed several out-of-the-box features available to PHP developers. Now we are ready to create our own Nennius web application, and so we will discuss all of the steps necessary to do that.

    If you wish to follow along, please download a copy of the Nennius engine from Source Forge (http://sourceforge.net/projects/nennius). At the time of this article the recommended version is 1.9 B. If you would like to learn more about the Nennius project after reading this article, please visit the Nennius website (http://nennius.sourceforge.net).

    Initializing a New Nennius Application

    Similar in some respects to Tomcat, Nennius is itself an application engine. In turn, it allows developers to create multiple, fully-customizable web applications that may be run simultaneously on top of a single instance of the engine. Each web application resides in a folder located within the ‘/nennius/webapps/’ directory. So the first step in creating a Nennius application is to create a folder within that directory. For the purposes of this article, we will develop a basic web application that manages news releases for a corporate website. Our folder will be named “news”.

    Once our folder has been created, the next step is to define a basic configuration for our application. The Nennius bundle includes a sample web application, and I recommend that user’s make a copy of the “application.defaults.php” file provided with that example when creating a new app. We will want to make a copy of this file with the same name and place it into our ‘news’ directory. The purpose of the defaults file is to define basic values for all application variables (editable and non-editable). These values will then be used by the Nennius engine to drive the application.

    (Note: it is recommended for advanced projects that the developer also create a file named ‘application.config.php’ to store all editable values. This config file then allows a user to customize certain variables to his or her pference, while leaving the initial configuration un-touched. This is important for several reasons: it keeps editable variables separate from non-editable variables, and it also allows for an easy start-over point in the instance that the config file itself is somehow corrupted.)

    The last step in initializing a Nennius web application is defining a menu. This can be done for now by copying the file ‘/nennius/webapps/welcome/config.menu.php’ into our ‘news’ folder, and then modifying it to fit our purposes. We'll come back to this shortly, but first let's take a look at how to setup our basic configuration.



     
     
    >>> More MySQL Articles          >>> More By Brian Vaughn
     

       

    MYSQL ARTICLES

    - MySQL Security Tips
    - Designing a MySQL Database: Tips and Techniq...
    - The Three Most Important MySQL Queries
    - Null and Empty Strings
    - MySQL Server Tuning Tips and Tricks
    - MySQL Query Optimizations and Schema Design
    - MySQL Benchmarking Tools and Utilities
    - MySQL Benchmarking Concepts and Strategies
    - 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...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek