This allows setting the layout from view template similar to how they are done in default cake view templates. The layout is permanently set when set through the template.
Previously, you had to use a {% do ... %} work-around, but this is not very obvious since the _view global variable cannot modify protected members.
This allows setting the layout from view template similar to how they are done in default cake view templates. The layout is permanently set when set through the template.
Previously, you had to use a
{% do ... %}
work-around, but this is not very obvious since the_view
global variable cannot modify protected members.Example: