Pimcore Members (MembersBundle), how to integrate views/templates into my layout?

Hello,

I’ve installed and configured Pimcore Members Bundle (https://github.com/dachcom-digital/pimcore-members), and I am struggling with integrating it into my project.

I have my AppBundle, where my controllers, actions, and layouts / templates are. How do I display, for example, a (MembersBundle) login form in my own document, with my layout exactly?

I can override the MembersBundle templates (https://symfony.com/doc/3.4/templating/overriding.html) but my layout depends on view variables the MembersBundle controllers have no access to, which is logical.

What am I missing here? Am I supposed to just make my own controllers and forms for actions with views and use MembersBundle controllers for viewless actions only? There has to be a better way of doing this, right? What is the correct workflow here?

I realize this might be more of a Symfony question than a Pimcore question, but any help is appreciated, I got really confused by this. Doesn’t everyone intend to use the bundle components within their own views?

I found these, but that didn’t help:


Thanks!