I need to add – i have this problem only with this dynamic_sidebar function.
Have you tried using {{ function('dynamic_sidebar', 'header-widget-1') }} instead?
I think you might be using an old method. Have you tried one of the three here? #3 might be what you need.
-
This reply was modified 8 years, 11 months ago by
Brian Larson.
its work, thank y but is any way to make my way right or its too old?
-
This reply was modified 8 years, 11 months ago by
raptor2.
I think the deprecation from fn() to function() is a Twig thing and Timber followed suit with the most recent version. I could be wrong though for sure. Glad to hear you got it working!
{{ function('dynamic_sidebar', 'header-widget-1') }}
this way didnt work, but i did like that:
$context['dynamic_sidebar'] = Timber::get_widgets('dynamic_sidebar');