J3.x

J3.x:Developing an MVC Component/Adding an alias

From Joomla! Documentation

Revision as of 10:26, 29 March 2018 by Robbiej (talk | contribs) (initial page creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Joomla! 
3.x
Tutorial
Developing an MVC Component



This is a multiple-article series of tutorials on how to develop a Model-View-Controller Component for Joomla! VersionJoomla 3.x.

Begin with the Introduction, and navigate the articles in this series by using the navigation button at the bottom or the box to the right (the Articles in this series).



This tutorial is part of the Developing a MVC Component for Joomla! 3.x tutorial. You are encouraged to read the previous parts of the tutorial before reading this.

The main purpose of this step is to provide an introduction to the Joomla router functionality, which is responsible for taking the URL in the incoming HTTP request, working out which component should be responsible for handling it, and setting up the request parameters (view=abc, id=123, etc.) correctly so that the component can access them via the standard API calls.

We will set up an alias field in each of our helloworld records, and we'll use that alias within the SEF (Search Engine Friendly) URLs for accessing our helloworld messages. To accomplish this we'll define our own custom component router.

Along the way, we'll look at some of the APIs associated with Menus and Menuitems.

Under Construction!




Contributors