how to create a joomla component

Discussion in 'Joomla' started by devisrimari, Sep 29, 2011.

  1. #1
    hi,
    could you please anyone help me out how to create a joomla 1.5 component that will retrieve data from the database. i need practical example. please don't suggests me joomla MVC documents.

    Thanks in Advance.
     
    devisrimari, Sep 29, 2011 IP
  2. rebbu

    rebbu Active Member

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    93
    #2
    Maybe like this:

     
    rebbu, Sep 29, 2011 IP
  3. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #3
    Providing a full example Joomla COM is several files and not a small task. If you could provide some more details about what you want to do, maybe someone can offer useful code. For example, you ask for a COM which retrieves data from the database but if that is all that's needed you could use a module to do the task. A COM is more useful when you need to add data to the DB as well as fetch it.
     
    shallowink, Sep 29, 2011 IP
  4. rebbu

    rebbu Active Member

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    93
    #4
    you can use COM to retrieve data also
     
    rebbu, Sep 29, 2011 IP
  5. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #5
    Never said it couldn't. Actually, I specifically said it could fetch data as well.

    But tell me this, which is an easier example a module or a COM?
     
    shallowink, Sep 29, 2011 IP
  6. devisrimari

    devisrimari Greenhorn

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #6
    hi,
    Thanks for your all suggestions. I was able to fetch a data from single database table. But I need to fetch a data from two database table. I don’t know how to write the query for that in joomla component (I was already tried with natural join table). Please give me an idea?
     
    devisrimari, Sep 29, 2011 IP
  7. websitedesigningindia

    websitedesigningindia Greenhorn

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #7
    There is software called component creator using that you can create any components.
     
    websitedesigningindia, Sep 29, 2011 IP
  8. amherstsowell

    amherstsowell Peon

    Messages:
    261
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Use a software, search on Google, name of software is Component Creator in Joomla. :)
     
    amherstsowell, Sep 30, 2011 IP