layout.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $view->getCharset() ?>"/>
  5. <title><?php echo htmlspecialchars($exception->getMessage(), ENT_QUOTES, $view->getCharset()) ?> (<?php echo $exception->getStatusCode() ?> <?php echo $exception->getStatusText() ?>)</title>
  6. <style type="text/css">
  7. html { background: #eee }
  8. body { font: 11px Verdana, Arial, sans-serif; color: #333 }
  9. .sf-exceptionreset, .sf-exceptionreset .block, .sf-exceptionreset #message { margin: auto }
  10. <?php echo $view->render('FrameworkBundle:Exception:styles') ?>
  11. </style>
  12. <script type="text/javascript">
  13. //<![CDATA[
  14. function toggle(id, clazz) {
  15. el = document.getElementById(id);
  16. current = el.style.display
  17. if (clazz) {
  18. var tags = document.getElementsByTagName('*');
  19. for (i = 0; i < tags.length; i++) {
  20. if (tags[i].className == clazz) {
  21. tags[i].style.display = 'none';
  22. }
  23. }
  24. }
  25. el.style.display = current == 'none' ? 'block' : 'none';
  26. }
  27. //]]>
  28. </script>
  29. </head>
  30. <body>
  31. <?php echo $view->get('slots')->get('_content') ?>
  32. </body>
  33. </html>