You now know how to access both the frontend and the backend of the component. Although you could keep typing in the URLs each time you wanted to execute a piece of code, this will not be acceptable to your users. Navigation can be provided if you register the component in the database by adding a row to the components table.
We will perform this registration using the following query. It is assumed that your database prefix is jos_
. If not, replace jos_
with the prefix you chose. If you prefer to work directly with SQL statements via the command-line interface, enter the following query in your console:
INSERT INTO jos_components (name, link, admin_menu_link, admin_menu_alt, `option`, admin_menu_img, params) VALUES (`Restaurant Reviews`, `option=com_restaurants`, `option=com_restaurants', `Manage Reviews`, `com_restaurants`, `js/ThemeOffice/component.png`, ``);
If you prefer to use a GUI or web-based database manager such as phpMyAdmin, enter...