I know I can use this
public function providerAction() { $result = new ViewModel(); $result->setTerminal(true); return $result; }
But how to pass variables for viewing? Before i did it
return array('items' => $items);
But now I have only one option, either an returned array, and then a layout or $result
return, then the variables are not displayed in the view.
source share