Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // config.php
- $GLOBALS['TL_HOOKS']['parseTemplate'][] = array('MyClass', 'redirectBBKDeeplink');
- // MyClass.php
- public function redirectBBKDeeplink($objTemplate)
- {
- if ($objTemplate->getName() == 'be_confirm' && $objTemplate->info['table'] == 'tl_bbk_booking' && !$objTemplate->info['rt'])
- {
- $this->redirect($objTemplate->href);
- }
- }
Add Comment
Please, Sign In to add comment