Seriously I am bugged for two weeks, I dont know using macros function How to pass parameters. if i have a business logic
class Test extends Phalcon\Mvc\Model
{
public function Atest($url) { return $this->$Url ; }
}
in Controller,
public function indexAction() {
$test = new Test(); $this->view->test= $test;
$this->view->setVar("Atest", function($Atest){ return $Atest; });
}
in Volt file, I have to display a values using macro function, Is it Possible?
{%- macro Atest(url) %} {% return... %} {%- endmacro %}
whether i can pass paameters to return values from business logic
Please help...