I was looking at the JHTML framework in Joomla. Basically JHTML does a lot of html formatting which is a common functionality of all web applications.
Fired up my PhpED to take a look at the include paths of JHTML by calling
JHTML::addIncludePath()
It seems that JHTML by default has only one include path at:
libraries/joomla/html/html
Lets first go through the JHTML class. Full of very useful functions.
All the function names are self explanatory. What is worth mentioning is:
- date() function which returns a formatted date
- tooltip() function which returns a formatted tooltip
- calendar() function which returns a pop-up calendar
Or so I thought.. until i came to the first html file in the entire JHTML library…. hey.. there is another tooltip() .. etc…
Hmmm.. this looks like a worth while challenge for our project manager… so… PM, please document out the entire html framework.
Do it in this format:
behaviour.php
JHTMLBehaviour
function: mootools
description: used to insert the necessary javascript for mootools which is used on joomla framework.
usage:
output:
Bad Example…





