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

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

Joomla! provides us
with some easy ways in which to redirect the browser.
Joomla! redirects are implemented using HTTP 301 redirect response codes. In
the event that response headers have already been sent, JavaScript will be used to
redirect the browser.
The most common time to redirect a browser is after a form has been submitted.
There are a number of reasons why we might want to do this:
This prevents forms from being submitted multiple times when the browser
is refreshed.
We can redirect to different locations dependent upon the submitted data.
Redirecting to another view reduces the amount of development required for
each task in the controller.
Imagine a user submits a form that is used to create a new record in a database table.
The first thing we need to do when we receive a request of this type is
to validate the form contents. This flow diagram describes the logic that we
could implement:
The No route passes the invalid input to the session. We do this so that when we
redirect the user to the input form we can repopulate the form with the invalid input.


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