Function : guestDirect

The guestDirect() is the opposite of authDirect(). It is only used to perform a redirection when a user account is not active.

Assuming we have to write a test code as below
  if( isGuest() ) {

    redirect('index');

  }
                  
We can easily run this in one line with guestDirect() as shown below

  guestDirect('index');