I created a function in the controller class that needs to be used inside the template (because the template it rendered many times (each template is a post on the website, and they will be all displayed with different values in the newsfeed). Is there a way to call it on a smarty variable? Say you created a function in the controller:
public function foo($bar){
$bar++;
return $bar;
}
And then in the template:
{$smarbar|foo} or something similar