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

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

php$" exclude="^_" />
This parameter, named 'layout', generates a list of items based on the template files.
It includes PHP files and excludes files with names that start with an underscore.
The list of items is displayed without the file extensions, and the values are saved
without the file extensions.
Imagine the tmpl folder contains the files: default.php, horiz.php, index.html,
vert.php, and _item.php. This is what the parameter would appear like when
rendered as a form element:
To use this parameter to render a template we can use the following; note that if the
parameter is not defined we use the layout 'default':
$layout = $params->get('layout', 'default');
require(JModuleHelper::getLayoutPath('mod_myextension', $layout));
We mentioned earlier the possibility of using a bespoke module error layout if
anything were to go amiss during the execution of our module. We can use the
JError class to define an error. Joomla! uses this class to describe errors, and objects
of this type are often returned from methods when errors occur.


Pages:
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6