public function setTheme($theme) { if (!$this->themeDAO->exist($theme)) { throw new PhException("There is no defined theme with name '{$theme}'"); } CookieStorage::add(self::$COOKIE_NAME, $theme); }
public static function saveLang($lang) { CookieStorage::add(self::$COOKIE_NAME, $lang); }