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

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

Templates
are always invoked by a view; when we do this we actually incorporate the template
code into the view object's loadTemplate() method.
This means that the variable $this is referring to the view object from which the
template was invoked. This is why we attach data to our view; it means that in the
template we can access all the data we added to view via $this.
It is generally best to use an existing template in order to build a new template. This
ensures that we use the conventions and styles implemented by Joomla! to render
our output.
Iterative Templates
We can break down templates into smaller chunks. We can use a separate template
to render common or iterative elements; these templates can then be called from
other templates.
These sorts of sub-templates are prefixed with the word default_. For example if
we had a sub-template to display a form it would be called default_form.php. This
example shows what we might have within such a file:
druga wojna światowa Free English grammar and study guid hotel jelenia góra Russian bride counter strike 1.6