Как вернуть шаблон Smarty в массиве json?
например:
PHP:
$smarty=new Smarty();
....
$title='some text';
echo json_encode(array('title'=>$title,'page'=>$smarty->display('templatename.tpl')));
jQuery:
$.post('pages.php',{id:id,page:page},function(json){
$('.title').text(json.title);
$('.content').html(json.page);
},'json');