Checks if a session section exist and is not empty.
public hasSection ( $section ) : boolean | ||
return | boolean |
/** * Checks if a flash session namespace exists. * @return bool */ public function hasFlashSession() { return !empty($this->params[self::FLASH_KEY]) && $this->session->hasSection('Nette.Application.Flash/' . $this->params[self::FLASH_KEY]); }