SHARE
TWEET

Untitled

a guest Jul 6th, 2017 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // config.php
  2. $GLOBALS['TL_HOOKS']['parseTemplate'][] = array('MyClass', 'redirectBBKDeeplink');
  3.  
  4. // MyClass.php  
  5.  public function redirectBBKDeeplink($objTemplate)
  6.     {
  7.         if ($objTemplate->getName() == 'be_confirm' && $objTemplate->info['table'] == 'tl_bbk_booking' && !$objTemplate->info['rt'])
  8.         {
  9.             $this->redirect($objTemplate->href);
  10.         }
  11.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top