phpeveryday.com

The best tutorial of php, php framework, php strategies, object oriented oriented,


Joomla - Component: Registering Your Component in database

Tag: joomla, cms, Joomla Component   Category: PHP Framework
post: 04 Nov 2007 read: 7,418


You now can access both front end and back end component. But, you have to type the URLs every time you wanted to execute. It is not easy way. You can add this URLs to menu. It will be more acceptable to your users. Navigation can be provided if you register the component in database.

You can do registration by execute query or fulfill a form in web based database manager such as phpMyAdmin.

If you prefer to work with direct SQL statements on command-line interface, enter following query in your console (It is assumed that you database prefix is jos_):


INSERT INTO jos_components 
(name, link, admin_menu_link, admin_menu_alt, 
`option`, admin_menu_img, params)
VALUES
('Hello World','option=com_hello','option=com_hello',
'Manage Hello','com_hello',
'js/ThemeOffice/component.png','');

If you prefer to use web-based database manager such as phpMyAdmin, you can follow this steps:

  1. Open your phpMyAdmin.
  2. Choose joomla (It is assumed that your joomla database named "joomla")
    choose joomla database
  3. Choose jos_component table by clicking in list tables.
    choose table jos_component
  4. Click tab insert.
    tab insert
  5. Enter data like this:
    registering component in database
  6. Click go button.
Now, open your Joomla! administrator. Look at components menu:
Hello World appear in components menu


Series this article:
Joomla - Component: Create Hello World Component on Front End
Joomla - Component: Create Hello World Component on Back End
Joomla - Component: Registering Your Component in database
Joomla - Component: Create Component Link for Front End
Joomla - Component: Creating Toolbars
Joomla - Component: Available Toolbar Buttons
Joomla - Component: Creating the Database Table
Joomla - Component: Creating Form Input Data at Back End
Joomla - Component: Saving Data to Database
Joomla - Component: Creating a List Screen
Joomla - Component: Creating Advance List Screen
Joomla - Component: Editing Data
Joomla - Component: Deleting Data
Joomla - Component: Updating publish state
Joomla - Component: Hello From Database at Front End
Joomla - Component: a Hello page
Joomla - Component: Generating Friendly Links
Joomla - Component: Adding Comment ( Create Table )
Joomla - Component: Adding Comment (Create Form)
Joomla - Component: Adding Comment ( Insert Data )
Joomla - Component: Adding Comment ( Displaying Comments )
Joomla: Fast Road to Understand Component Programming

| Give Your Opinion | Recommend
Share and Bookmark to: These icons link to social bookmarking sites where readers can share and discover new web pages.
digg del.icio.us technorati Ma.gnolia BlinkList

Recommended articles by other readers:
Web Services: How PHP Kiss VB.NET? (Part 1)
Joomla: Fast Road to Understand Component Programming
Chart: How to Build Cool Animation Real Time Chart
Email: Send Attachement Mail
SMS : Sending SMS with PHP and ActiveXperts (Part 1)

What do You Think?
Your Name *:
Email *:
(Will not be published)
Website/URL:
Your Comment *:
* Required


624
posting