Prev | Current Page 342 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

This example
demonstrates how we can check the value of the show_something parameter before
proceeding to 'show something':
params->get('show_something')) : ?>

something; ?>


It is generally easier when developing templates to include all possible elements.
Once this is complete, it is generally easier to add the necessary parameters and
make each element optional.
Modifying the Document
The document, as described in Chapter 2, is a buffer used to store the content of the
document that will be returned when a request is complete. There are a number
of different things that we can modify in the document that will customize the
resultant page.
Whenever we want to modify the document, we use the JFactory class to get the
global document object. This example demonstrates how:
$document =& JFactory::getDocument();
Notice that we use the =& assignment operator. If we do not, any modification we
make to the document will not be applied.


Pages:
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354
www.books61.hobbitstory.com tanie noclegi międzyzdroje pokoje windsurfing Władysławowo noclegi e-lady