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

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

xml file. We can do this using the JFile class:
// create XML string
$xmlString = ''."\n";
$xmlString .= $document->toString();
// get the JFile class
jimport('joomla.filesystem.file');
// save the changes
if (!JFile::write($pathToXML_File, $xmlString))
{
// handle failed file save
}
These alterations will enable users to modify myparameter and myotherparameter,
when they use the user's component to modify their details. This screenshot depicts
the resultant form with the changes:
If one were to employ this technique, the best place to do so would probably be in a
component installation file. It is also important to consider making a backup of the
existing file, in case of any unexpected difficulties.
Modifying this file could also lead to problems if the file is ever updated, for example
as part of an upgrade. However, it does mean that all of the user's details are editable
from one central point.
Extension Design
[ 184 ]
The Session
When a user accesses Joomla!, a new session is created; this occurs even if the user
is not logged in.


Pages:
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258
druga wojna światowa Free English grammar and study guid hotel jelenia góra Russian bride counter strike 1.6