Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules

Search

Donate to XOOPS!

Please select an amount to donate


Do you want your username revealed with your donation?
Yes - List me as a Generous Donor
No - List my donation as from an Anonymous Donor


Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

admin Arabic banner block Christmas comments cumulus DayDawn dhsoft e-Commerce E-Learning Git Google GUI hacks instant-zero jQuery module mygalleries news Nordic Olédrion oxygen PageRank PHP rmcommon security SEO simple-XOOPS Smarty sport tag Theme tutorial wiki WOX xoops XoopsEngine ZendFramework

New Users

Registering user

# 133948

guilhermeans

Welcome to XOOPS!
[Main Page]

Making a simple module: Showing your page

From XOOPS Web Application System

Main Page | Recent changes | Edit this page | Page history | Switch to MediaWiki mode

Printable version | Disclaimers | Privacy policy
Category: DevWiki

DevWiki Index

Showing your pages

You can fill your module pages with information in three different ways, here presented from simplest to best:

1. You can use regular echo statements without any use of templates at all.

2. You can use templates to set up positioned blocks, and fill the blocks with prepared HTML strings.

3. You can use the template system as it's meant to be used: Make sure that all HTML tags are in the template, and assign raw data to the templates.


What method you should choose depends on the complexity of your module project, and also on how much of the code you'd like to reuse later.

Examples

Say we've got an array and we want to print it onscreen using each method:

   * $myArray = array("Tribal Tech", "Face First", "Tuna Laguna", "Try it!", "Hoven Droven", "Swedish folk music done cool");

We'll just edit the minimal module files for each method, so you may want to copy and rename the folder so that you can pop the original files on top of the old ones to "reset" as we move on...


1.2.1 Using echo

1.2.2 Using a simple template

1.2.3 An active template


Back to DevWiki Tutorials

Retrieved from "http://xoops.org/modules/mediawiki/index.php/Making_a_simple_module:_Showing_your_page"

This page has been accessed 4,809 times. This page was last modified 16:33, 24 July 2009. Content is available under XOOPS Web Application System.