What I'm trying to do is probably very simple (the irony is that I'm stuck).
I have a file that smarty divides into a (template and php) file. I have a small js script that sends an ajax request to update a variable in a file (php).
In the php file based on what I get from AJAX, I do
$smarty->assign('test',$_GET['test'])
and then
$smarty->display('index.tpl')
Now, since this is AJAX, I am confused by what to send as an answer, since I am already showing the template.
source
share