Flag of Ukraine
SymfonyCasts stands united with the people of Ukraine
Next Chapter

Challenge #1 of 1


Q: 

On our cart page, we have a <turbo-frame id="cart-summary"> that renders a short list of the items in our cart. This works great! But now, in our base layout, we want to render a link on our sidebar that, on click, loads this "cart summary" into the sidebar:

<turbo-frame id="sidebar">
    <!-- ... -->

    <a href="{{ path('app_cart') }}">Show Cart Summary</a>
</turbo>

Unfortunately, when we try this, we get an error because the turbo-frame looks for a sidebar frame on the cart page. How could me modify the cart page to get this to work?

userVoice