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

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

0" encoding="UTF-8" ?>';
// prepare some data
$xml = new JSimpleXMLElement('element');
$xml->setData('This is an xml format document');
Chapter 4
[ 93 ]
// output the data in XML format
echo $xml->toString();
}
}
This will output a very basic XML document with one XML element:

This is an xml format document
The great thing about this is it enables us to create many formats for one view.
Dealing with Component Configuration
The chances are that a component that we are building is going to need some
configuration options. Every component can store default parameters about itself.
A relationship exists between menu items and the component configuration. The
configuration edited from within the component defines the default configuration.
When we create a new menu item, we can modify the component configuration
specifically for the menu item. This enables us to override the default configuration
on a per-menu-item basis.
To define component parameters we must create an XML metadata file, called
config.


Pages:
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
druga wojna światowa Free English grammar and study guid hotel jelenia góra Russian bride counter strike 1.6