一个非常基本的xoops模块结构

一个非常基本的xoops模块结构,不是所有的模块都包括这些文件/目录.
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.测试验证,包括mainfile.php 和语言文件.

  • index.php

    Module administration contents come here.模块管理内容

  • menu.php

    This file includes variables used for creating popup admin menu for the module.包括用来创建phpup管理菜单的变量

/language
Overview

This directory should at least contain 'english' directory, which in turn contains files that define language constants.定义语言常量,至少包括'english'目录.

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/main.php合并

  • english/modinfo.php

    Defines language constants used in xoops_version.php定义语言常量,用于xoops_version.php

  • english/blocks.php

    Defines language constants used in blocks/blocks.php定义语言常量,用于blocks/blocks.php

/blocks
Overview

This directory contains files that define block display/edit functions定义block展示编辑函数

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.HTML文件,之后由xoops_version.phpmodversion 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.用smarty来显示模块信息

Files in this directory

all templates used in module blocks. Those files uses smarty blocks vars to display module blocks informations.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值