0

I see the framework that company use and CI framework,when include template file ,they use like this

ob_start();
include $file;
$buffer = ob_get_contents();
ob_end_clean();
return $buffer;

I want to know just include function file could assign varibles to template file and include,why use ob functions?

0 Answers0