23 $_params = array(
'resource_name' => $params[
'smarty_file']);
24 require_once(SMARTY_CORE_DIR .
'core.get_php_resource.php');
26 $_smarty_resource_type = $_params[
'resource_type'];
27 $_smarty_php_resource = $_params[
'php_resource'];
29 if (!empty($params[
'smarty_assign'])) {
31 if ($_smarty_resource_type ==
'file') {
32 $smarty->_include($_smarty_php_resource, $params[
'smarty_once'], $params[
'smarty_include_vars']);
34 $smarty->_eval($_smarty_php_resource, $params[
'smarty_include_vars']);
36 $smarty->assign($params[
'smarty_assign'], ob_get_contents());
39 if ($_smarty_resource_type ==
'file') {
40 $smarty->_include($_smarty_php_resource, $params[
'smarty_once'], $params[
'smarty_include_vars']);
42 $smarty->_eval($_smarty_php_resource, $params[
'smarty_include_vars']);