Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Create custom component in Joomla 1.5

    • 0
    • 1
    • 1
    • 2
    • 0
    • 0
    • 0
    • 0
    • 181
    Comment on it

    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:-

    1. 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.
    2. Apart of the above files there are some folders that you can keep according to your requirement. These folders are:- models, views, tables.
    3. 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.
    4. In view folder, all the template files exist. I attached complete view folder that is using in my example component.
    5. In model folder, there is a php file that get data from the database. Data handling will be done in model file.
    6. 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.
    7. 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.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: