Joomla - Component: Create Hello World Component on Back End
After made "Hello World" on front end, we will learn how to make "Hello World" on back end page. Back end means only administrator can access this page.
- Create a folder named "com_hello" under joomla/administrator/components.
- Create a file "admin.hello.php" within com_hello folder.
- Write following code in hello.php:
<?php defined( '_JEXEC' ) or die( 'Restricted access' ); echo 'Hello, World!'; ?>
- Call your Joomla! in web browser. Login as administrator.
- 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/administrator/index.php?option=com_hello
