Rajout des aides de vue et d'action
[zf2.biz/galerie.git] / module / Application / view / layout / layout.phtml
index ca045e2..9ef159f 100644 (file)
@@ -12,6 +12,7 @@
                         ->prependStylesheet($this->basePath() . '/css/bootstrap-responsive.min.css')
                         ->prependStylesheet($this->basePath() . '/css/style.css')
                         ->prependStylesheet($this->basePath() . '/css/bootstrap.min.css')
+                        ->prependStylesheet($this->basePath() . '/css/jquery-ui.css')
                         ->prependStylesheet($this->basePath() . '/css/jquery-dataTables.css') ?>
 
         <!-- Scripts -->
@@ -19,6 +20,7 @@
                                       ->prependFile($this->basePath() . '/js/bootstrap.min.js')
                                       ->prependFile($this->basePath() . '/js/perso.js')
                                       ->prependFile($this->basePath() . '/js/jquery-dataTables.js')
+                                      ->prependFile($this->basePath() . '/js/jquery-ui.js')
                                       ->prependFile($this->basePath() . '/js/jquery.min.js') ?>
 
     </head>
             </div>
         </div>
         <div class="container">
+<?php
+    $views = $this->viewModel()->getCurrent()->getChildren();
+    $main_view = $views[0];
+    $variables = $main_view->getVariables();
+?>
+<?php if (isset($variables['infos'])) : ?>
+<?php foreach($main_view->infos as $info): ?>
+    <?php echo $this->format($info, 'info'); ?>
+<?php endforeach; ?>
+<?php endif; ?>
+<?php if (isset($main_view->warnings)) : ?>
+<?php foreach($warnings as $warning): ?>
+    <?php echo $this->format($warning, 'warning'); ?>
+<?php endforeach; ?>
+<?php endif; ?>
+<?php if (isset($main_view->errors)) : ?>
+<?php foreach($errors as $error): ?>
+    <?php echo $this->format($error, 'error'); ?>
+<?php endforeach; ?>
+<?php endif; ?>
+            <hr />
             <?php echo $this->content; ?>
-            <hr>
+            <hr />
             <footer>
                 <p>&copy; 2005 - 2012 by Zend Technologies Ltd. <?php echo $this->translate('All rights reserved.') ?></p>
             </footer>