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

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

For more information, refer to the Appendix.
As a general rule: when dealing with vectors (objects and arrays) we should use the
assignRef() method; when dealing with scalars (basic data types) we should use
the assign() method.
Finally in our overridden display() method we call the parent display()
method. This is what loads and renders the layout, but we do not have a layout. In
components, layouts are unique to HTML views.
Layouts are essentially templates; in most cases, there is one template file per layout,
which displays a view. Template files are PHP files, which mainly consist of XHTML
and use small snippets of PHP to display dynamic data.
In theory, we do not actually need layouts because we can just echo data directly out
of the view class. However, layouts enable us to define multiple layouts for the same
view, so we can view the same data in a number of different ways.
To create a default layout we create a file called default.php in the view's tmpl
folder. This is the layout that will be used unless otherwise specified.


Pages:
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6