src/Core.php
/**
     * Tiny helper function to help ensure that exit is always called after 
     * redirection and allows the developer to only have to remember the 
     * location they want. (wont forget 'location:')
     * 
     * @param location - the location/address/url you want to redirect to.
     * 
     * @return void - redirects the user and quits.
     */
Tiny helper function to help ensure that exit is always called after
redirection and allows the developer to only have to remember the
location they want. (wont forget 'location:')

@param location - the location/address/url you want to redirect to.

@return void - redirects the user and quits.
Tiny helper function to help ensure that exit is always called after redirection and allows the developer to only have to remember the location they want . ( wont forget ' location : ' ) @param location - the location / address / url you want to redirect to . @return void - redirects the user and quits .
public static function redirectUser($location)
    {
        header("location: " . $location);
        exit();
    }
public static function redirectUser ( $ location ) { header ( " location:  " . $ location ) ; exit ( ) ; }
Tiny helper function to help ensure that exit is always called after
 redirection and allows the developer to only have to remember the
 location they want.
Tiny helper function to help ensure that exit is always called after redirection and allows the developer to only have to remember the location they want .