/** * @package Subway * @author YOOtheme http://www.yootheme.com * @copyright Copyright (C) YOOtheme GmbH * @license http://www.gnu.org/licenses/gpl.html GNU/GPL */ // start output buffer to capture content for use in footer.php ob_start();
/** * @package Subway * @author YOOtheme http://www.yootheme.com * @copyright Copyright (C) YOOtheme GmbH * @license http://www.gnu.org/licenses/gpl.html GNU/GPL */ // get warp $warp = Warp::getInstance(); // get content from output buffer and set a slot for the template renderer $warp['template']->set('content', ob_get_clean()); // load main template file, located in /layouts/template.php echo $warp['template']->render('template');