However, if I use the following code in my controller action the first one gets rendered and the second one gets displayed beneath the other one without any styles / layout applied to. This is not really what I wanted
Of course it is good that it is getting displayed beneath the first view but how do I get the layout / styles applied to the second view since it is rendered with renderPartial().
Maybe there is even a better way in achieving this despite rendering two views?
Well, it definitely made some things more clear to me. However I still do not quiet understand how to render two views.
As of what I’ve read once the render() method is called there is now way to sneak in a second view. Only with the beforeRender and afterRender it can be modified but can I use those to insert a second view?
I still don’t think that my approach is the right way… Do I have to write the second view as a widget to implement it in the first one?