/** * Set Route History * @param string route * @return \Touchbase\Control\Router */ protected static function setRouteHistory($route) { $routeHistory = static::routeHistory(); if (end($routeHistory) != $route) { SessionStore::push(self::ROUTE_HISTORY_KEY, $route); } }
/** * Flash * @param string $key * @param mixed $value * @return VOID */ public static function flash($key, $value) { SessionStore::set($key, $value); SessionStore::push(self::FLASH_KEY, $key); SessionStore::set(self::FLASH_KEY . ".aged", array_diff(SessionStore::get(self::FLASH_KEY . ".aged", []), [$key])); }