go back

What Is Joomla MVC?

Answer

MVC is an acronym for the Model View Controller programming paradigm. This paradigm was developed to separate different types of programming tasks into separate development areas. It was specifically done so that web designers could work with code that they were familiar with and database developers could work with code they were familiar with. Neither developer type would need to touch or program languages that they were unfamiliar with.

MVC pushes for the separation of design and data, from logic. The design is called the view. The logic is called the controller. The data is called the model. This separation makes each element very modular, which is good particularly for code reuse. For instance, a model, the data, can be the same for multiple views. A good example of this would be a pie chart showing the same data as a bar chart but in a different way. MVC is not limited to bar charts it is highly flexible and makes for very productive programming.

Joomla has created its own version of MVC which ties in to their template chrome system. Not only does Joomla benefit from the modularity of MVC, but now template developers can benefit also with Joomla chrome. Joomla Chrome looks in the current template html/ directory for the current component or module being displayed, if there is a reference, it will load the called chromed view instead of the default component view. The Beez template that is installed by default in Joomla 1.5 will show good examples of how chrome and MVC work together.

Joomla MVC is built on several classes, classes that extend the database and other framework features of Joomla. It provides developers and easily extensible system to build secure components atop.

Category

Services , Web Development Definitions

Tags for this item

custom packages , joomla templates , joomla tips , web design

messages