I also have a questions... To output a table, you need to use this code:
Code: Select all
$smarty->display("template.php");Code: Select all
$template = $smarty->display("template.php");For example, I need to include the template which is a full HTML file (it has the <html>, <head> and <body> tags) and I need to replace everything between the two <head> and </head> tags... I don't seem to be able to do that when it prints it directly on the page.
E.g:
Code: Select all
preg_match( "/\<head\>(.*?)\<\/head\>/is", $template, $head);
$template = str_replace($head[1], "<head>\n<style>".$style_sheet_code."</style>\n</head>", $template);