default.ctp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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->fetch('content'); ?>
  26. </div>
  27. <div id="footer">
  28. <?= $this->Html->link(
  29. $this->Html->image('cake.power.gif', ['alt' => $cakeDescription, 'border' => '0']),
  30. 'http://www.cakephp.org/',
  31. ['target' => '_blank', 'escape' => false]
  32. );
  33. ?>
  34. </div>
  35. </div>
  36. </body>
  37. </html>