2024-05-28 497次浏览

Yii View 9.0 版本包已经发布了。

  • added View::getLocale() and WebView::getLocale() methods;
  • added immutable method ViewInterface::withTheme() ;
  • deprecated ViewInterface::withDefaultExtension() and ViewInterface::getDefaultExtension() in favor of withFallbackExtension() and getFallbackExtensions() ;
  • adjusted config to make View and WebView more configurable;
  • made fallback extension configurable & support multiple fallbacks;
  • added types to ViewInterface::setParameter() and ViewInterface::addToParameter() parameters;
  • made event dispatcher in View and WebView optional;
  • made base path in View and WebView optional;
  • fixed signature of CachedContent::cache() ;
  • fixed reset config for referenced definitions;
  • fixed render templates that contain dots in their name.