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 168 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

If not, we
could raise an error, notice, or warning.
We can use helpers for many different tasks as well as data retrieval. Joomla!
encourages, although it does not force, the use of OO (Object-Oriented) design.
Functionality that we build in helpers is specifically functionality that has no
other logical category. Helper classes allow us to stick to OO design without any
compromise on the logical design of classes.
Layouts (Templates)
Layouts (templates) are used in modules in much the same way as they are in
components. Module layouts allow us to define multiple appearances for data.
Layouts are essentially template files, PHP files, which are mainly XHTML interlaced
with snippets of PHP. For a complete explanation of how to build template files
please, refer to Chapter 9.
Site templates can override module layouts. To render a module using a layout we
use the getLayoutPath() method in the static JModuleHelper class. This method
determines the location of a template file based on two parameters, the parsed
module name and the layout name.


Pages:
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180