I am restructuring a custom built framework and would like to implement something similar to Cakephp's $content_for_layout variable. Instead of creating layouts separate for each user type.
I would like to execute the content inside the included file and then store it into one variable and just echo that in the layout file.
Please suggest how this can be achieved?
Thanks