Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
 
Wiki ⇒ v9 Developer's Manual ⇒ Certified Secure ⇒ Modules

Wikiv9 Developer's ManualCertified Secure ⇒ Modules  

Glossary
The Project
Install
Upgrading or Switching
Dragonfly admininistration
Dragonfly public view
Dragonfly Themes
Build local server
Running Dragonfly CVS
Tips and Tricks
Rules & Regulations
v9 Developer's Manual
v10 Developer's manual
13.3.2: Modules Parent

The "documentation/samples/modules/Sample/index.php" contains the base for any module.
If you create your own then the directory name should be changed
We will explain what each part in index.php means.

if (!defined('CPG_NUKE')) { exit; }
Is used to prevent direct access like http://somewhere/modules/Sample/index.php and actualy destroys the request immediately.

$pagetitle .= 'My title';
$pagetitle is a global variable to setup the <title> inside the webpage <head>.
This way the browser shows nice info about the page and as second benefit the SE's (Search Engines) love this.

require_once('header.php');
Open the file header.php which creates and outputs the page header and left side (blocks) for the resulting XHTML page.
NOTE: setting/adding a value to $pagetitle will NOT work after header.php is called because the header is already send to the browser.

If your module isn't template based ($cpgtpl), you may use OpenTable() and CloseTable() to wrap a border around the text that you want to output.

 
Updated: Thursday, November 24, 2005 (03:10:48) by morph
Created:  Thursday, April 07, 2005 (20:36:26) by DJMaze

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy