This documentation will describes how to install Moodle 3.* on your virtual server. Install default PHP extensions for Moodle and configure PHP for optimal server work.
Category: Moodle Development
How to Set Pagelayout on Moodle
You can set layout to be embedded. The pages with embedded templates would be without header and footer sections:
$PAGE->set_pagelayout('embedded');