Learning the basics of Joomla! module creation
Building a basic Joomla! module is not that difficult. In fact it's quite
easy. Just stay with me, and we will divide the task into some easy-to-follow steps.
First of all, we need to create a folder for our module, for example,
mod_littlecontact
. This folder is where we will place all the files
necessary for our module.
For example, one of the files we are going to need is the
mod_littlecontact.php
file, which is named exactly the same as the
folder, but with a .php
extension. Let's see what we need to
put in it:
<?php defined('_JEXEC') or die('Direct Access to this location is not allowed.'); ?> <h1>Just a simple contact form!</h1>
We will look at just the basics. First,
defined('_JEXEC')
checks whether...