| « Joomla - Component: Create Hello World Component on Back End | Joomla - Component: Create Component Link for Front End » |
Joomla - Component: Registering Your Component in database
You now can access both front end and back end component. But, you have to type the URLs every time you wanted to execute. It is not easy way. You can add this URLs to menu. It will be more acceptable to your users. Navigation can be provided if you register the component in database.
You can do registration by execute query or fulfill a form in web based database manager such as phpMyAdmin.
If you prefer to work with direct SQL statements on command-line interface, enter following query in your console (It is assumed that you database prefix is jos_):
INSERT INTO jos_components
(name, link, admin_menu_link, admin_menu_alt,
`option`, admin_menu_img, params)
VALUES
('Hello World','option=com_hello','option=com_hello',
'Manage Hello','com_hello',
'js/ThemeOffice/component.png','');
If you prefer to use web-based database manager such as phpMyAdmin, you can follow this steps:
- Open your phpMyAdmin.
- Choose joomla (It is assumed that your joomla database named "joomla")
- Choose jos_component table by clicking in list tables.
- Click tab insert.
- Enter data like this:
- Click go button.
