User

Difference between revisions of "Rvsjoen/tutorial/Developing an MVC Component/Part 07"

From Joomla! Documentation

< User:Rvsjoen‎ | tutorial/Developing an MVC Component
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]

Download this part[edit]

Articles in this series[edit]

This tutorial is supported by the following versions of Joomla!

Joomla 2.5