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

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

These are used to enqueue
a message.
This example sets the controller redirect, as per the previous example, and
enqueues a notice type message that will be displayed after the redirect has
successfully completed:
$this->setRedirect('index.php?option=com_example', 'Some Message',
'notice');
Unlike the application redirect() method, this method does not immediately
enqueue the optional message, redirect the user's browser, and end the application.
To do this we must use the JController redirect() method.
It is normal, in components that use redirects, to execute the controller redirect()
method after the controller has executed a given task. This is normally done in the
root component file as this example demonstrates:
$controller = new ExampleController();
$controller->execute(JRequest::getCmd('task'));
$controller->redirect();
Component XML Metadata Files and Menu
Parameters
When we create menu items, if a component has a selection of views and layouts,
we can choose which view and which layout we want to use.


Pages:
319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343
druga wojna światowa Free English grammar and study guid hotel jelenia góra Russian bride counter strike 1.6