_phptemplate_render
themes/engines/phptemplate/phptemplate.engine, строка 412
- Версии
- 5
_phptemplate_render($file, $variables)
Код
<?php
function _phptemplate_render($file, $variables) {
extract($variables, EXTR_SKIP); // Extract the variables to a local namespace
ob_start(); // Start output buffering
include "./$file"; // Include the file
$contents = ob_get_contents(); // Get the contents of the buffer
ob_end_clean(); // End buffering and discard
return $contents; // Return the contents
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии