I'm creating a custom controller that uses the same header and footer as the rest of the site, but will be using custom code to serve content, but I also need to exclude them based on query parameters (hence why I'm not using a template file in a cms page for this)
My question is how can I call upon these in a controller? Does renderLayout() accept parameters such as renderLayout('header'), etc.?