KWeb  6.4
KWebException_Redirect Class Reference

Redirects are handled through exceptions. More...

Public Member Functions

 __construct ($url, $response='302 Found', $checkError=true)
 redirect ()

Data Fields

 $url
 $response
 $checkError

Detailed Description

Redirects are handled through exceptions.

This way, calling functions can properly react to redirects.

Use KWeb::$inst->redirect() to throw the exception If you caught an exception, use redirect() to run it.


Constructor & Destructor Documentation

KWebException_Redirect::__construct ( url,
response = '302 Found',
checkError = true 
)

Member Function Documentation

KWebException_Redirect::redirect ( )

Field Documentation

KWebException_Redirect::$checkError
KWebException_Redirect::$response
KWebException_Redirect::$url

The documentation for this class was generated from the following file: