Using a variable defined in controller inside a view
I come from using Laravel framework so using variables in a view are as easy as defining the variable in the controller and using it in the view.
But with Garden (vanilla) I'm having problems understanding how it works.
So in my controller I set a variable: $test = "testing var";
But when i try and do something like echo $test; in the view.. nothing shows up.
Can anyone guide me or tell me the logic behind this.