I follow undocumented rule, learn programming for first time by creating "Hello World" page. I will show you how to create component Hello World. It realy easy.
- Create "com_hello" folder under joomla/components
- Create file "hello.php" within com_hello folder.
- Write following code in hello.php:
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
echo '<div class="componentheading">Hello World!</div>';
?>
- If you install Joomla! on a local web server in a directory title joomla, the URL for accessing this component will be http://localhost/joomla/index.php?option=com_hello