SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 93 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"


The model allows us to modify data; in most cases this is achieved using bespoke
methods, which define business processes. The methods that define business logic
are essentially defining the behavior of the data.
Models are never aware of controllers or views. It is important to remember this
because it often helps us understand better how we are supposed to make the MVC
components operate.
The view defines how we present the data. In Joomla!, when we use a view to
display HTML we also use layouts (a form of template). This gives us an extra layer
of control and enables us to define multiple templates for the same view.
The data that we display in a view originates from one or more models. These
models are automatically associated with the view by the controller.
Views never modify data. All modifications to data are completed within
the controller.
The controller is the brains behind the operation. Part of the presentation layer, the
controller analyses input data and takes the necessary steps to produce the result,
presenting the output.


Pages:
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105