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

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"


The Yes route adds a new record to the database and then redirects the user to the
newly created item. As with the No route, it is normal to enqueue a message that will
say that the new item has been successfully saved, or something to that effect.
Chapter 9
[ 247 ]
There are many scenarios where the use of a redirect is common. This list identifies
some of these:
Canceling editing an existing item
Copying items
Creating new items and updating existing items
Deleting items
Publishing/unpublishing items
Updating item ordering
The next question is: How do we redirect? There are essentially two ways in which
we can do this. The first is to use the application redirect() method.
It is unusual to use this mechanism unless we are developing a component without
the use of the Joomla! MVC classes. This example demonstrates how we use the
application method:
$mainframe->redirect('index.php?option=com_example');
This will redirect the user's browser to index.php?option=com_example. There are
two additional optional parameters that we can provide when using this method.


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