Contrôleur Galerie/index: changement sémantique
authorSébastien CHAZALLET <s.chazallet@gmail.com>
Wed, 7 Nov 2012 13:48:50 +0000 (14:48 +0100)
committerSébastien CHAZALLET <s.chazallet@gmail.com>
Wed, 7 Nov 2012 13:48:50 +0000 (14:48 +0100)
module/Galerie/src/Galerie/Controller/IndexController.php
module/Galerie/view/galerie/index/index.phtml

index 2f28c98..0d7be64 100644 (file)
@@ -34,7 +34,7 @@ class IndexController extends AbstractActionController
     public function indexAction() 
     { 
         return new ViewModel(array(
-            'all' => $this->_getGalerieInfoTable()->all(),
+            'galeries' => $this->_getGalerieInfoTable()->all(),
         )); 
     } 
 
index bf934a6..8710626 100644 (file)
@@ -4,6 +4,6 @@
 <h1>Galerie</h1>
 <h2>test de la méthode all()</h2>
 
-<pre><?php echo $all->count(); ?></pre>
-<pre><?php print_r($all->toArray()); ?></pre>
+<pre><?php echo $galeries->count(); ?></pre>
+<pre><?php print_r($galeries->toArray()); ?></pre>