default.ctp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. /**
  3. *
  4. * PHP 5
  5. *
  6. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  7. * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  8. *
  9. * Licensed under The MIT License
  10. * Redistributions of files must retain the above copyright notice.
  11. *
  12. * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  13. * @link http://cakephp.org CakePHP(tm) Project
  14. * @package cake.libs.view.templates.layouts
  15. * @since CakePHP(tm) v 0.10.0.1076
  16. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  17. */
  18. $this->loadHelper('Html');
  19. $cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework');
  20. ?>
  21. <!DOCTYPE html>
  22. <html xmlns="http://www.w3.org/1999/xhtml">
  23. <head>
  24. <?php echo $this->Html->charset(); ?>
  25. <title>
  26. <?php echo $cakeDescription ?>:
  27. <?php echo $title_for_layout; ?>
  28. </title>
  29. <?php
  30. echo $this->Html->meta('icon');
  31. echo $this->Html->css('cake.generic');
  32. echo $scripts_for_layout;
  33. ?>
  34. </head>
  35. <body>
  36. <div id="container">
  37. <div id="header">
  38. <h1><?php echo $this->Html->link($cakeDescription, 'http://cakephp.org'); ?></h1>
  39. </div>
  40. <div id="content">
  41. <?php echo $content_for_layout; ?>
  42. </div>
  43. <div id="footer">
  44. <?php echo $this->Html->link(
  45. $this->Html->image('cake.power.gif', array('alt' => $cakeDescription, 'border' => '0')),
  46. 'http://www.cakephp.org/',
  47. array('target' => '_blank', 'escape' => false)
  48. );
  49. ?>
  50. </div>
  51. </div>
  52. </body>
  53. </html>