I have got a - for me challenging - question. The following code was working properly in CMSMS 1.10, but now in version 1.11 and Smarty 3, I'm always getting an error:
Code: Select all
$gCms = cmsms();
$smarty = &$gCms->GetSmarty();
$smarty_data = "{cropnewsimage target_size_x='114' target_size_y='88' feld_id='1' output='thumb_register_'}";
$smarty->_compile_source('temporary template', $smarty_data, $_compiled );
@ob_start();
$smarty->_eval('?>' . $_compiled);
$_contents = @ob_get_contents();
@ob_end_clean();
Code: Select all
Call of unknown method '_compile_source'.