You are on page 1of 2

8.

3 Registration into Database


Next, we are going to register the new component into database. Why we should have to
register it? It is because the new component can publish in the component menu and can be
chosen as the menu item type. Here are the steps:

1. Open your phpMyAdmin by present your browser at http://localhost/phpmyadmin.


2. Login first.
3. Choose database Joomla!

Picture 8.5 Choose the jos_components table

4. Choose the Joomla! database. You will get the jos_components table structure in the
right side.
5. Click Insert tab in the tab menu of the right side.
6. You will get a form to input the data into the table. Fill the form as in the picture 8.6.

Picture 8.6 The data for the book catalog component

7. Click the Go button.

You can also use another way by executing the sql order as the following:
INSERT INTO `jos_components` ( `id` , `name` , `link` ,
`menuid` , `parent` , `admin_menu_link` , `admin_menu_alt`
, `option` , `ordering` , `admin_menu_img` , `iscore` ,
`params` , `enabled` )

VALUES ( NULL , 'Katalog Buku', 'option=com_book', '0',


'0', 'option=com_book', 'Mengelola Daftar Buku',
'com_book', '0', 'js/ThemeOffice/component.png', '0', '',
'1');

Check whether it is succeeded or not. Login as the administrator into your Joomla! site. Then,
take a look at the Components menu.

Picture 8.7 The component is already registered

You might also like