You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this great restful example. But it seems the module.php has some problem based on ZF2 beta 3 when request category.json and thumb.json, as for these two controllers, their getList is returned an array, but not ViewModel. $e->getResult()->getVariables() doesn't work.
So in my local, the fixture is:
Module.php (Line 53)
$vars = $e->getResult();
if($vars instanceof \Zend\View\Model\ViewModel)
{
$vars = $e->getResult()->getVariables();
}
$postProcessor = $di->get($formatter . '-pp', array(
'vars' => $vars,
'response' => $e->getResponse()
));
The text was updated successfully, but these errors were encountered:
Thanks for this great restful example. But it seems the module.php has some problem based on ZF2 beta 3 when request category.json and thumb.json, as for these two controllers, their getList is returned an array, but not ViewModel. $e->getResult()->getVariables() doesn't work.
So in my local, the fixture is:
Module.php (Line 53)
$vars = $e->getResult();
if($vars instanceof \Zend\View\Model\ViewModel)
{
$vars = $e->getResult()->getVariables();
}
$postProcessor = $di->get($formatter . '-pp', array(
'vars' => $vars,
'response' => $e->getResponse()
));
The text was updated successfully, but these errors were encountered: