Atomik Event Browser

Atomik::redirect()

Atomik::Redirect

Fired before a redirection

  1. string &$url

    The url to redirect to

  2. boolean &$className

    Whether to apply Atomik::url() on the $url

  3. int &$httpCode

    The redirection HTTP code

function myAtomikRedirectHandler(&$url, &$className, &$httpCode)
{
    // your code
}

Atomik::listenEvent('Atomik::Redirect', 'myAtomikRedirectHandler');