The module will be located at modules/mod_myextension. If we create a backend
module, it will be located at administrator/modules/mod_myextension.
In order to enable and use your module, you will need to use the Module Manager to
publish and assign the module to menu items.
First Steps
Now we are ready to start playing with a module. Joomla! allows us a good deal
of freedom within modules. The file mod_myextension.php is invoked when the
module is used. There are no restrictions as to what we choose to do within this file.
You can output data at any point during the execution of a module. To test this, if
you output some data from mod_myextension.php, the data will appear in
the module.
Chapter 5
[ 117 ]
Standalone Modules
Standalone modules do not depend on other extensions. These modules tend to
require more effort to produce because there is no existing API, other than that
which Joomla! provides.
Standalone modules normally use data sources external to Joomla!. If we want
to store data within Joomla! we are faced with the problem that modules do not
support the execution of custom SQL or other scripts during installation.
Pages:
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169