/** * Must reset ALL static variables to their initial state * @param sfEvent $event */ public static function listenToSimulateNewRequestEvent(sfEvent $event) { aTools::$global = false; aTools::$globalCache = false; aTools::$currentPage = null; aTools::$pageStack = array(); aTools::$globalButtons = false; aTools::$allowSlotEditing = true; aTools::$realUrl = null; aTools::$jsCalls = array(); aNavigation::simulateNewRequest(); }