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

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

Grouped types are identified by a group name and a
name. This is a list of the seven grouped types:
behavior
email
grid
image
list
menu
select
Before we start looking at some examples, we need to import the library. We must
always do this in order to use the JHTML class:
jimport('joomla.html.html');
We'll use the basic type link as an example. This example demonstrates how to
create a link to the root of a component:
echo JHTML::_('link', 'index.php?option=com_somecom', 'Some
Component');
The first parameter we provide is the type, in this case link; the following
parameters are specific to the link type. We will explain what each of the extra
parameters is, for the different types, in a moment.
Next we'll use the type cloak in the email group as an example. This example
demonstrates how to create a mailto link without giving away the email address:
echo JHTML::_('email.cloak', 'example@example.org');
This time the type is prefixed with the group name email and a period. The email.
cloak type is used to hide email addresses from spam-bots that crawl websites
looking for email addresses.


Pages:
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6