Working view layer integration
[zf2.biz/galerie.git] / module / Application / src / Application / Controller / IndexController.php
index 8c1f5e1..fa1103b 100644 (file)
@@ -2,12 +2,13 @@
 
 namespace Application\Controller;
 
-use Zend\Mvc\Controller\ActionController;
+use Zend\Mvc\Controller\ActionController,
+    Zend\View\Model\ViewModel;
 
 class IndexController extends ActionController
 {
     public function indexAction()
     {
-        return array();
+        return new ViewModel();
     }
 }