User Login    
 + Register
  • Main navigation
Login
Username:

Password:

Remember me



Lost Password?

Register now!
Who's Online
76 user(s) are online (13 user(s) are browsing XoopsWiki)

Members: 2
Guests: 74

Mamba, mrarz, more...
[Main Page]

Dev:making a simple module:showing your page

From XOOPS Project

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

Printable version | Disclaimers | Privacy policy
Category: Development

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 dev:Tutorials

Retrieved from "http://www.xoops.org/modules/mediawiki/index.php/Dev:making_a_simple_module:showing_your_page"

This page has been accessed 644 times. This page was last modified 01:51, 16 December 2007. Content is available under XOOPS Project.


Developers for Hire
Developers for Hire
Local Support Sites
Make a donation
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


Powered by
XOOPS Code hosted on SourceForge

Powered by PHP

PHP 5

Powered by MySQL

Powered by Smarty

OSI certified

GPL

All content on this site is subject to the Creative Commons License
Top Tags
Theme (5) news (2) security (2) sport (1) Arabic (1) wiki (1) Christmas (1) jQuery (1) tag (1) module (1) SEO (1) comments (1)
Advertisement