User

Rvsjoen/tutorial/Developing an MVC Component/Part 07

From Joomla! Documentation

< User:Rvsjoen‎ | tutorial/Developing an MVC Component

Basic backend[edit]

Now that we have the basic set of the frontend features implemented, we would really like to be able to list and manage the hello messages in the table through the administrator interface. The first step in this quest is to create a controller, a view and a model for listing all the messages in the table. We also need to update our entry point for the backend to have it load the controller instead of just displaying Hello Admins.

Creating the controller[edit]

Updating the entry point[edit]

Creating the model[edit]

Creating the view[edit]

Installation manifest[edit]

helloworld.xml

Testing your component[edit]

For details on how to install the component into your Joomla! site, refer to the information provided in Part 01.

In order to test this component, go to the administrator interface and create a new menu item. In the menu item type selection interface, pick Hello World as the menu item type. In the options of the menu item you will be able to choose which hello message to show from the database, the message you choose should be displayed in the frontend as in the previous part.

File listing[edit]

Download this part[edit]

Articles in this series[edit]

This tutorial is supported by the following versions of Joomla!

Joomla 2.5