- no changes in this release.
- Enh #42: Allow smarty v4 (simialbi)
- Bug #38: Change call of Smarty method
setTemplateDir()
toaddTemplateDir()
(alex-net) - Bug #39: Fixed fetching View constant values for
registerJs
andregisterCss
blocks in PHP 8 (simialbi)
- Enh #36: Added
{js}
function allowing instantiateyii\web\JsExpression
(leandrogehlen)
- Enh #31: Respect widget events (simialbi)
- Bug #23: Fixed widget registration and rendering code generation inside subtemplates (eymerich)
- Enh #25: Give a choice to use SmartyBC class (a761208)
- Bug #17: Updated Composer constraints to reflect the fact that it requires Smarty 3 (samdark)
- Bug #12: Fixed SmartyException thrown when using multiple
{use}
for functions and blocks in inherited templates (freezy-sk)
- Bug #8: Fixed
functionRegisterJsFile
position parameter (TomassunGitHub, samdark)
- Bug #6845: Fixed incorrect implementation of
{registerCssFile
and{registerJsFile
(TomassunGitHub, samdark) - Bug #6991: Fixed exception when using
{use class='yii\bootstrap\Nav' type='function'}
(ivanlemeshev)
- no changes in this release.
- Bug #5748:
{path
was generating absolute URLs instead of relative ones (samdark, motzel)
- no changes in this release.
- Enh #4619 (samdark, hwmaier)
- New functions:
url
generates absolute URL.set
allows setting commonly used view parameters:title
,theme
andlayout
.meta
registers meta tag.registerJsFile
registers JavaScript file.registerCssFile
registers CSS file.use
allows importing classes to the template and optionally provides these as functions and blocks.
- New blocks:
title
.description
.registerJs
.registerCss
.
- New modifier
void
that allows calling functions and ignoring result. - Moved most of Yii custom syntax into
\yii\smarty\Extension
class that could be extended viaextensionClass
property. - Added ability to set Smarty options via config using
options
. - Added
imports
property that accepts an array of classes imported into template namespace. - Added
widgets
property that can be used to import widgets as Smarty tags. Yii::$app->params['paramKey']
values are now accessible as Smarty config variables{#paramKey#}
.- Added ability to use Yii aliases in
extends
andrequire
.
- New functions:
- no changes in this release.
- Initial release.