You appear to be required to include the main content token in any layout page
<? echo core_renderer::MAIN_CONTENT_TOKEN ?>
An error is thrown if it's not found.
I'm trying to find some way of creating a theme with no main content. The reason is that I want to create a new login page that is completely custom. As login does not seem to have any renderers that I can override, the only way seems to be to completely replace it's layout page with my own content (forms, buttons and everything). The layour renderer doesn't seem to want to let me.
Yes, I know this is madness, but any thoughts?
EDIT:
In particular, this doesn't work
<?php ob_start(); ?>
<? echo core_renderer::MAIN_CONTENT_TOKEN ?>
<?php ob_end_flush(); ?>
.....I'm not sure I'm surprised. I take it the layout is 'interpreted' in some way and that echo statement is not actually echoing anything for real. I don't understand well enough how layouts work under the hood (or bonnet in proper English, of course )