Actions

J2.5

Difference between revisions of "Developing a MVC Component/Introduction"

From Joomla! Documentation

< J2.5:Developing a MVC Component
m (update)
(Requirements)
Line 3: Line 3:
 
== Requirements ==
 
== Requirements ==
 
You need Joomla! 2.5 (with  PHP, MySQL, Apache and Microsoft II) or greater for this tutorial.
 
You need Joomla! 2.5 (with  PHP, MySQL, Apache and Microsoft II) or greater for this tutorial.
 +
 +
It will help you much if you are running an local instance of Joomla on your computer.
 +
Then backup librarys map tree and put in your own debug code there.
 +
Very much tracing can be done in controller and view code.
 +
You can put a lot of 'error_log(...)' and you can also combine it with 'print_r(debug_backtrace(),true)' to get a better understanding of what really happens behind the surface. You will be able to follow your programs steps in apache's error log.
  
 
== Introduction ==
 
== Introduction ==

Revision as of 17:02, 3 January 2014


This is a multiple article series on how to develop of Model-View-Contoller Component for Joomla! Version Joomla 2.5. You can navigate the articles in this series by using the navigation box.

Read the Introduction or Start here. On any page you can use the links in the navigation box above.

Requirements

You need Joomla! 2.5 (with PHP, MySQL, Apache and Microsoft II) or greater for this tutorial.

It will help you much if you are running an local instance of Joomla on your computer. Then backup librarys map tree and put in your own debug code there. Very much tracing can be done in controller and view code. You can put a lot of 'error_log(...)' and you can also combine it with 'print_r(debug_backtrace(),true)' to get a better understanding of what really happens behind the surface. You will be able to follow your programs steps in apache's error log.

Introduction

Joomla! 2.5 is constructed using three different applications:

  • installation (used for installing Joomla)
  • administrator (used for managing content)
  • public (used for displaying content)

The installation application is used once. The administrator and public are used through the concept of components. Each component has two entry points:

  • one is located in the components directory (it is used for displaying content)
  • one is located in the administrator/components directory (it is used for managing content)

Both are called com_componentname/componentname.php (the com_ prefix is a historical trace)

Contributors