Hi, I'm trying to call a method of Page_Controller from the template, but if I try to pass in more than two arguments then none of them show up at the other end.
I've got this going on:
Page.php:
class Page_Controller extends ContentController {
function ArgTest($one='default', $two='default', $three='default') {
print_r(func_get_args());
}
}
Page.ss:
$ImageTest(new, new, new)
and the output is:
Array ( )
It's not passing the arguments in at all, but if I only pass two in ($ImageTest(new, new)) it works fine:
Array ( [0] => new [1] => new )
Anybody have any ideas what's going on? Is this a limitation of the template engine?