Hmmm… sometimes you just need to be able add certain configuration settings to support your application. Most common are stuff like email addresses which have to be emailed as part of some workflow….
So how do you go about doing it with Joomla. Well, this article will illustrate how this can be done leveraging Joomla’s framework by discussing the 2 points:
- Storing configuration information into configuration.php through Joomla’s backend
- Utilising configuration informatio nthrough Joomla’s backend.
End Results
Well basically, you are trying to achieve something like this… an additional panel under global configuration for joomla.

Storing Configuration Information
Well, to do this, we have to touch on 3 files:
- application.php (amend existing file)
- view.php (amend existing file)
- config_<appName>.php (new file)

application.php
Codes to persist new field to configuration.php

view.php
Linking to the new application configuration php. Only needs to be done once!

config_eep.portal
New view page for the application specific application.

Utilising Configuration Information
Utilising the configuration information is as simple as:
mainframe->getCfg(’<<configVariableName>>’)’
Of course, you will if you are utilising it in a function, you will need to do a
global mainframe
Anyway, below is some source codes… together with leveraging on Joomla internal mailing configuration to send email
|