Difference between revisions of "Rvsjoen/tutorial/Developing an MVC Component/Part 07"
From Joomla! Documentation
< User:Rvsjoen | tutorial/Developing an MVC Component
m (→File listing) |
|||
Line 35: | Line 35: | ||
* <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_01#index.html|site/views/helloworld/tmpl/index.html]]</tt> | * <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_01#index.html|site/views/helloworld/tmpl/index.html]]</tt> | ||
* <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_02#site/views/helloworld/tmpl/default.php|site/views/helloworld/tmpl/default.php]]</tt> | * <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_02#site/views/helloworld/tmpl/default.php|site/views/helloworld/tmpl/default.php]]</tt> | ||
− | * <tt>[[#site/views/helloworld/tmpl/default.xml|site/views/helloworld/tmpl/default.xml]]</tt> | + | * <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_06#site/views/helloworld/tmpl/default.xml|site/views/helloworld/tmpl/default.xml]]</tt> |
* <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_01#index.html|site/models/index.html]]</tt> | * <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_01#index.html|site/models/index.html]]</tt> | ||
− | * <tt>[[#site/models/helloworld.php|site/models/helloworld.php]]</tt> | + | * <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_06#site/models/helloworld.php|site/models/helloworld.php]]</tt> |
* <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_01#index.html|admin/index.html]]</tt> | * <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_01#index.html|admin/index.html]]</tt> | ||
* <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_01#admin/helloworld.php|admin/helloworld.php]]</tt> | * <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_01#admin/helloworld.php|admin/helloworld.php]]</tt> | ||
* <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_01#index.html|admin/models/index.html]]</tt> | * <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_01#index.html|admin/models/index.html]]</tt> | ||
* <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_01#index.html|admin/models/fields/index.html]]</tt> | * <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_01#index.html|admin/models/fields/index.html]]</tt> | ||
− | * <tt>[[#admin/models/fields/helloworld.php|admin/models/fields/helloworld.php]]</tt> | + | * <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_06#admin/models/fields/helloworld.php|admin/models/fields/helloworld.php]]</tt> |
* <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_01#index.html|admin/tables/index.html]]</tt> | * <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_01#index.html|admin/tables/index.html]]</tt> | ||
− | * <tt>[[#admin/tables/helloworld.php|admin/tables/helloworld.php]]</tt> | + | * <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_06#admin/tables/helloworld.php|admin/tables/helloworld.php]]</tt> |
* <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_01#index.html|admin/sql/index.html]]</tt> | * <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_01#index.html|admin/sql/index.html]]</tt> | ||
− | * <tt>[[#admin/sql/install.mysql.utf8.sql|admin/sql/install.mysql.utf8.sql]]</tt> | + | * <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_06#admin/sql/install.mysql.utf8.sql|admin/sql/install.mysql.utf8.sql]]</tt> |
− | * <tt>[[#admin/sql/uninstall.mysql.utf8.sql|admin/sql/uninstall.mysql.utf8.sql]]</tt> | + | * <tt>[[User:Rvsjoen/tutorial/Developing_an_MVC_Component/Part_06#admin/sql/uninstall.mysql.utf8.sql|admin/sql/uninstall.mysql.utf8.sql]]</tt> |
== Download this part == | == Download this part == |
Revision as of 07:20, 11 July 2011
Basic backend[edit]
Now that we have most 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, and the first step in this quest is to create a controller, a view and a model for listing all the messages in the table.
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