8. Components Part II: Views, JForm, and Front End

In the previous chapter, we looked at the controllers and models for the back end of the Weblinks component. In this chapter, we continue our look at the Weblinks component.

We start by examining the views and display methods, including an in-depth look at how the Weblinks Manager layout works. Then we explore the use of the JForm class in the Weblink Edit view. Finally, we look at the front end of Weblinks and discuss what is similar and different between the back end and front end of the component.

Views and the display() Method

Let’s now examine the view part of the model-view-controller (MVC) pattern, still in the back end. Recall that a view is shown when we have no task or the task is display. ...

Get Joomla!™ Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.