I currently try to draft a nested layout. My idea is to have a section that contains the desktop layout and one that contains the mobile layout. However, to do so I have to render different files into the layout. I currently itend to do so by rendering one file in my controller but have the others be dynamically derived from that file. I.e. if I render a file named ‘view’ I’ll dynamically also render the file ‘view_Mobile’ in the mobile section of the template.
My main problem is that I can not access the rendered file in the template (so, to stick with the example, get a string such as ‘view.php’). Is there any way to do so?
Thanks for your reply. Actually, I’m using bootstrap, but there are several sides which are better off with separate designs. Anyway, I decided to discard my approach since there are only very few sides which require to do so.