Skip to content
Snippets Groups Projects
Commit c9b3f189 authored by Demian Katz's avatar Demian Katz
Browse files

Eliminated workaround for ZF2 problem that no longer exists.

parent e72e0288
No related merge requests found
...@@ -59,17 +59,7 @@ class AbstractBase extends AbstractActionController ...@@ -59,17 +59,7 @@ class AbstractBase extends AbstractActionController
*/ */
protected function createViewModel($params = null) protected function createViewModel($params = null)
{ {
// I would expect to be able to just pass $params to the ViewModel return new ViewModel($params);
// constructor, but as of beta5, that seems to make the resulting
// object unable to accept additional variables.
$view = new ViewModel();
if (!empty($params)) {
foreach ($params as $k => $v) {
$view->setVariable($k, $v);
}
}
return $view;
} }
/** /**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment