Version 9.0 of Yii View package was released.
- added
View::getLocale()
andWebView::getLocale()
methods; - added immutable method
ViewInterface::withTheme()
; - deprecated
ViewInterface::withDefaultExtension()
andViewInterface::getDefaultExtension()
in favor ofwithFallbackExtension()
andgetFallbackExtensions()
; - adjusted config to make
View
andWebView
more configurable; - made fallback extension configurable & support multiple fallbacks;
- added types to
ViewInterface::setParameter()
andViewInterface::addToParameter()
parameters; - made event dispatcher in
View
andWebView
optional; - made base path in
View
andWebView
optional; - fixed signature of
CachedContent::cache()
; - fixed reset config for referenced definitions;
- fixed render templates that contain dots in their name.