

We will continue to add to this file throughout the process of creating our tables. While creating these database tables it is appropriate to begin the process of creating the script which will be used when the component is installed through the Joomla! administrator panel. This function provides the table name associated with this JTable file and also defines the primary key field, book_id, in this file. In our case the table file holds a single construct function. joomla_root/components/com_lendr/site/tables/book.php We create each of the files we described in our outline.
Develop joomla extensions series#
Please refer back to the first article in this series to recall how your local environment should be configured. We store these in the table folder located in the frontside of our component. We begin by creating the database table files. Now that we have this written out and a rough outline we begin creating these files in our folder structure. Here is the initial outline of key files needed for Lendr. However, having a starting outline will help to keep things somewhat on track. This will not be a comprehensive list and will most definitely be modified as we progress through the process. Now we should write down our basic structure of files needed.

This new component Lendr will provide the following set of features: Component Detailsĭescription: Lendr is a bootstrapped Joomla! 3.0 component which will allow users to create a profile, add their books to their library collection, view other users libraries, request a book to borrow, add books to a wishlist, and sign up to be on a waitlist for a particular book.

For our component we will be creating the following system. The first thing to do is to create a rough overview of the files, folders, database tables, and associated fields. Step 1: Write basic component outline for files needed Don’t overlook the importance of being in the right frame of mind when you begin work. Get into a pattern, a rhythm and soon you’ll find your creativity, focus, and coding skills to be at the ready when you sit down to begin work. Step 0: Make coffeeĪgain, it is important to start your day and project off right. My goal is to write a rather robust component beyond a simple “Hello World” component to fully demonstrate key points in actual component development.
Develop joomla extensions download#
This component will be available for review and download by visiting the accompanying site referenced throughout this and future articles. In order to have a good working example for this tutorial series on Joomla! 3.0 component development I have chosen to walk through the process by actually writing an extension.
