1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| function view($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data);
try {
include $__path;
} catch (Exception $e) {
while (ob_get_level() > $obLevel) {
ob_end_clean();
}
throw $e;
}
return ltrim(ob_get_clean());
}
|