with_flash.ctp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. $this->loadHelper('Html');
  3. $cakeDescription = 'CakePHP: the rapid development php framework';
  4. ?>
  5. <!DOCTYPE html>
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <head>
  8. <?= $this->Html->charset(); ?>
  9. <title>
  10. <?= $cakeDescription ?>:
  11. <?= $this->fetch('title'); ?>
  12. </title>
  13. <?php
  14. echo $this->Html->meta('icon');
  15. echo $this->Html->css('cake.generic');
  16. echo $this->fetch('script');
  17. ?>
  18. </head>
  19. <body>
  20. <div id="container">
  21. <div id="header">
  22. <h1><?= $this->Html->link($cakeDescription, 'https://cakephp.org'); ?></h1>
  23. </div>
  24. <div id="content">
  25. <?= $this->Flash->render(); ?>
  26. <?= $this->fetch('content'); ?>
  27. </div>
  28. <div id="footer">
  29. <?= $this->Html->link(
  30. $this->Html->image('cake.power.gif', ['alt' => $cakeDescription, 'border' => '0']),
  31. 'http://www.cakephp.org/',
  32. ['target' => '_blank', 'escape' => false]
  33. );
  34. ?>
  35. </div>
  36. </div>
  37. </body>
  38. </html>