Skip to content

Modules

crapougnax edited this page Apr 17, 2012 · 9 revisions

A module is a sub part of an application provided by a third-party vendor. The folder structure of a module is application/modules/vendorname/modulename/.

The module folder must contain a configs/ directory and optional controllers/, models/ and tests/ directories.

The module manifest must be found in the configs/ directory and named module.<ext>.

Example of a XML-based module manifest module.xml:

    <config>
      <modules>
        <module id="modulename" vendor="vendorname">
          <depends>
            <depends>othervendorname/othermodulename</depend>
          </depends>
          <label>My Module</label>
          <version>1.0.0</version>
          <copyright>...</copyright>
          <license>...</license>
          <enabled>true</enabled>
          <description>...</description>
          <namespace>My\Namespace</namespace>
          <resources>
            <resource id="menuname">
            </resource>
            <resource id="othermenuname" extends="parentmenu">
            </resource>
          </resources>
        </module>
      </modules>
    </config>
Clone this wiki locally