Extremely simple Joomla 1.5 component tutorial

Parent Category: Mad Blanks Information Category: Advanced Joomla! and/or PHP problems and solutions
Created on Thursday, 20 May 2010 Last Updated on Thursday, 20 May 2010 Published Date Written by Chris Hallett
Here's about the simplest Hello World! tutorial possible for making a component for Joomla! 1.5.
The very simplest component consists of a single directory and a single PHP file.

Try this:

In the root folder of your Joomla site there is a "components" directory. Inside the components directory, make yourself a new directory named "com_mycomponent". Inside the com_mycomponent directory, make a file named "mycomponent.php". Place the following three lines inside mycomponent.php:

defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' );
echo "Hello World! Welcome to My Component.";

Now in your web browser load your site. To load your new component, append the URL variable option=com_mycomponent, something like this:

You should see the message from your extremely simple component load in your Joomla site!

This is the official website for Mad Blanks, a component written for Joomla!™

Mad Blanks, when used with Joomla!™, will allow you to give a quiz on your site. You can also use it to give a survey. Quizzes and surveys are popular applications on the Internet, including personality quizzes, name generators, and assessments.

This website and the featured software products herein written for Joomla!™ are the property of Chris Hallett, an independent programmer. Chris does not represent Open Source Matters, Inc. nor the Joomla!™ project.

Mad Blanks, Mad Current Event, and Mad Simple True False Quiz are licensed under the GNU General Public License (GPL) version 2.

www.madblanks.com | Mad Blanks - Quiz, survey, assessment, calculator, general purpose form

Terms & Conditions | Privacy Policy | Contact Us | © 2015 Chris Hallett

Thursday the 26th. Joomla Templates Free.