I went through documentation on Volt and did not see the example with setVar function.
So this is my code in Controller:
if(!$valid) {
$this->view->setVar("No Email", $error);
}
the code in my volt file:
<input type="text" name="email" placeholder="Employee email" />{{ error }}
I am getting "Undefined variable: error"
What i am doing wrong?