0) { ob_start(); include($_SERVER['DOCUMENT_ROOT'].'/templates/tcatalog.html'); $resultdb = ob_get_contents(); ob_end_clean(); } $content = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/view/catalog.html'); $content = str_replace('', $resultdb, $content); return include $_SERVER['DOCUMENT_ROOT']."/templates/base.html";