Sometimes, when we are working on CMS like Joomla, Drupal etc, we have such requirements for which we need to build our own component. On that component, we can add our logics for development.
Here are some basic steps to create you own Joomla component for admin panel. In the following example, I created a movie component for admin. Admin can manage movies, rating of all popular sites like rediff.com, The times of India etc and also can update their data by this component. You can check this page on the frontend by going through this URL:-Allindoon
Following are the steps to start writing for your own component in Joomla:-
Basic files that should be in your component folder are:- an xml file, php file(same name with your component), controller.php, index.html file.
Apart of the above files there are some folders that you can keep according to your requirement. These folders are:- models, views, tables.
Install.xml file contain full information of that component for e.g component name, description, author name, created date, author email, author url, version, copyright,license info(if any), name of all files and folders that are going to be used. I attached an xml file for an example.
In view folder, all the template files exist. I attached complete view folder that is using in my example component.
In model folder, there is a php file that get data from the database. Data handling will be done in model file.
In tables folder, if there is any specific table that is going to use in your component, then we create tablename.php file within tables folder.
Create a zip file for that component and install it from the admin panel.
I attached a complete zip file for that component for your help.