User Login    
 + Register
  • Main navigation
Login
Username:

Password:


Lost Password?

Register now!
Documentation
Who's Online
131 user(s) are online (6 user(s) are browsing XoopsWiki)

Members: 8
Guests: 123

damaster, ghia_, brentw, robstg, MrsQ2U, ik2xnw, Cptrmaker, GPboarder, more...
[Main Page]

Dev:file structure

From XOOPS Project

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

Printable version | Disclaimers | Privacy policy
Category: Development

Contents

File Structure

Below is a very basic structure of a module in XOOPS Version1 RC3. Please note that not all directories/files listed below are required for each module.

xoops_version.php (Example)

   Overview
       The most important file for the module, which contains various module config variables.

header.php

   Overview
       Inclusion of required core files is done here.

index.php

   Overview
       Module main contents come here.


/admin

   ===Overview===
       All the admin related files for the module belong to this directory. Access to this directory must be restricted.
   ===Files in this directory===
           *
             admin_header.php
                 Permission checks, inclusion of mainfile.php and language files are done here.
           *
             index.php
                 Module administration contents come here.
           *
             menu.php
                 This file includes variables used for creating popup admin menu for the module.


/language

   ===Overview===
       This directory should at least contain 'english' directory, which in turn contains files that define language constants.
   ===Files in this directory===
           *
             english/main.php
                 Defines language constants used in module main contents.
           *
             english/admin.php
                 Defines language constants used in module admin sections. If there are not many language Constants used in the administration pages, this file may be merged with english/main.php.
           *
             english/modinfo.php
                 Defines language constants used in xoops_version.php
           *
             english/blocks.php
                 Defines language constants used in blocks/blocks.php


/blocks

   ===Overview===
       This directory contains files that define block display/edit functions
   ===Files in this directory===
           * blocks.php


/sql

   ===Overview===
       SQL dump files used for module installation belong to this directory.
   ===Files in this directory===
           *
             mysql.sql
                 mysql dump file
           *
             postgresql.sql
                 postgreSQL dump file

/images

   ===Overview===
       Image files come here, if any.
   ===Files in this directory===
       Any image files used in the module.

/cache

   ===Overview===
       Files that are created/updated dynamically belong to this directory. To create new files within the directory, the permission of this directory should be set writeable by the server (chmod 666 or 777 for UNIX/LINUX servers).
   ===Files in this directory===
       The permission of files in this directory should be set writeable by the server (chmod 666 or 777 for UNIX/LINUX servers).


/templates

   ===Overview===
       HTML files for Xoops 2 RC3 and later module templates to be called by xoops_version.php &modversion array.
   ===Files in this directory===
       all templates used in module.


/templates/blocks

   === Overview ===
       HTML files for Xoops 2 RC3 and later module blocks templates to be called by xoops_version.php &modversion array for 'blocks' items. Those files uses smarty vars to display module informations.
   ===Files in this directory===
       all templates used in module blocks. Those files uses smarty blocks vars to display module blocks informations.


Back to the Main Page

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

This page has been accessed 354 times. This page was last modified 02:06, 16 December 2007. Content is available under XOOPS Project.


Local Support Sites
Powered by
XOOPS Code hosted on SourceForge

Powered by PHP



Powered by MySQL

Powered by Smarty

OSI certified

All content on this site is subject to the Creative Commons License
Developers for Hire