Before you begin with coding, there are a few files and folders that have to be created, as well as a query that has to be run. This will not only allow you to build the components, but will also help you try different features without extensive configuration. You will also get a quick overview of the way Joomla! organizes components and how they can be accessed. Finally, you will add some toolbars that work just like those in other components.
Joomla! employs a specific naming convention, which is used by all components. Each component in the system has a unique name with no spaces. The code is split into two folders, each bearing the component name prefixed by com_
. The component in this book will be called restaurants
. Therefore, you will have to create two folders named com_restaurants:
Create one in the folder named
components
, for the frontendCreate one in the folder named
components
within theadministrator...