-
Book Overview & Buying
-
Table Of Contents
CMS Made Simple Development Cookbook
This recipe encapsulates the primary purpose of many modules: it creates a form that an end-user can fill out, and stores the provided data into a database table. Not only does it demonstrate the basics of creating different form inputs, processing the form submission, and storing the data in a database table, but provides a typical install method that initializes the database table for use. It does all of this in a localizable fashion, so the module can be easily translated to work in other languages. In just a few pages of code, it provides much of a working application: all it lacks is some means of displaying and/or administering the submitted data (and possibly some data validation).
1. Using any of the methods described in Chapter 4, Getting Started with Modules, create a new plug-in type module stub for your UFO Sighting Report module, and call it "UFOTracker".
2. Using your favorite editor, edit your module's method.install.php, and...
Change the font size
Change margin width
Change background colour