Skip to content
This repository has been archived by the owner on Jun 24, 2020. It is now read-only.

Latest commit

 

History

History
23 lines (18 loc) · 1.07 KB

register-the-component.md

File metadata and controls

23 lines (18 loc) · 1.07 KB

Register the Component

The first thing we need to do is make sure our component is registered in the database. This is normaly done automatically when installing a new component with the normal Joomla installer. In our case we need to do it manually.

We know that our component is going to be called com_todo so we can perform an insert with the following code in the database.

For those of you are using the Joomlatools vagrant box, you can use http://phpmyadmin.joomla.dev

Replace '#__' with your database prefix:

For Joomla 2.5.x and 3.x

    INSERT INTO `sites_todo`.`#__extensions`
        (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`,
         `enabled`, `access`, `protected`, `manifest_cache`, `params`,
         `custom_data`, `system_data`, `checked_out`, `checked_out_time`,
         `ordering`, `state`
         )
    VALUES
        (NULL, 'com_todo', 'component', 'com_todo', '', '0', '1', '1',
        '1', '', '', '', '', '0', '0000-00-00 00:00:00', '0', '0');

With that done, we are free to dive into our component development.