4.3
How do I pass parameters from template to class-methods
I want to pass 2 Params from template to a method of my class.
The Method is working without parameters. If it requests parameters and I
send them from the template. I get an error: Too few arguments to function
So it seems that the parameter are not transfered…
Template:
<% loop $FunctionWithParams(100,200) %>
<% end_loop %>
PHP
public function FunctionWithParams($a,$b){
return $this->Children();
}