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]
- helloworld.xml
- site/index.html
- site/helloworld.php
- site/controller.php
- site/views/index.html
- site/views/helloworld/index.html
- site/views/helloworld/view.html.php
- site/views/helloworld/tmpl/index.html
- site/views/helloworld/tmpl/default.php
- site/views/helloworld/tmpl/default.xml
- site/models/index.html
- site/models/helloworld.php
- admin/index.html
- admin/helloworld.php
- admin/models/index.html
- admin/models/fields/index.html
- admin/models/fields/helloworld.php
- admin/tables/index.html
- admin/tables/helloworld.php
- admin/sql/index.html
- admin/sql/install.mysql.utf8.sql
- admin/sql/uninstall.mysql.utf8.sql
Download this part[edit]
Articles in this series[edit]
This tutorial is supported by the following versions of Joomla!
- Introduction
- Part 01 - Developing a Basic Component
- Part 02 - Adding a view to the frontend
- Part 03 - Adding a menu item type to the frontend
- Part 04 - Adding a model to the frontend
- Part 05 - Adding options to menu items
- Part 06 - Using a database
- Part 07 - Basic backend
- Part 08 - Adding language translation
- Part 09 - Adding actions to backend
- Part 10 - Adding decorations to the backend
- Part 11 - Adding validation
- Part 12 - Adding categories
- Part 13 - Adding component options
- Part 14 - Adding ACL
- Part 15 - Adding a script file