home.ctp 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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.pages
  15. * @since CakePHP(tm) v 0.10.0.1076
  16. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  17. */
  18. App::uses('Debugger', 'Utility');
  19. ?>
  20. <h2><?php echo __d('cake_dev', 'Release Notes for CakePHP %s.', Configure::version()); ?></h2>
  21. <a href="http://cakephp.org/changelogs/1.3.6"><?php echo __d('cake_dev', 'Read the changelog'); ?> </a>
  22. <p>
  23. <?php
  24. if (is_writable(TMP)):
  25. echo '<span class="notice success">';
  26. echo __d('cake_dev', 'Your tmp directory is writable.');
  27. echo '</span>';
  28. else:
  29. echo '<span class="notice">';
  30. echo __d('cake_dev', 'Your tmp directory is NOT writable.');
  31. echo '</span>';
  32. endif;
  33. ?>
  34. </p>
  35. <p>
  36. <?php
  37. $settings = Cache::settings();
  38. if (!empty($settings)):
  39. echo '<span class="notice success">';
  40. echo __d('cake_dev', 'The %s is being used for caching. To change the config edit APP/config/core.php ', '<em>'. $settings['engine'] . 'Engine</em>');
  41. echo '</span>';
  42. else:
  43. echo '<span class="notice">';
  44. echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in APP/config/core.php');
  45. echo '</span>';
  46. endif;
  47. ?>
  48. </p>
  49. <p>
  50. <?php
  51. $filePresent = null;
  52. if (file_exists(APP . 'Config' . DS . 'database.php')):
  53. echo '<span class="notice success">';
  54. echo __d('cake_dev', 'Your database configuration file is present.');
  55. $filePresent = true;
  56. echo '</span>';
  57. else:
  58. echo '<span class="notice">';
  59. echo __d('cake_dev', 'Your database configuration file is NOT present.');
  60. echo '<br/>';
  61. echo __d('cake_dev', 'Rename config/database.php.default to config/database.php');
  62. echo '</span>';
  63. endif;
  64. ?>
  65. </p>
  66. <?php
  67. if (isset($filePresent)):
  68. App::uses('ConnectionManager', 'Model');
  69. try {
  70. $connected = ConnectionManager::getDataSource('default');
  71. } catch (Exception $e) {
  72. $connected = false;
  73. }
  74. ?>
  75. <p>
  76. <?php
  77. if ($connected && $connected->isConnected()):
  78. echo '<span class="notice success">';
  79. echo __d('cake_dev', 'Cake is able to connect to the database.');
  80. echo '</span>';
  81. else:
  82. echo '<span class="notice">';
  83. echo __d('cake_dev', 'Cake is NOT able to connect to the database.');
  84. echo '</span>';
  85. endif;
  86. ?>
  87. </p>
  88. <?php endif; ?>
  89. <?php
  90. App::uses('Validation', 'Utility');
  91. if (!Validation::alphaNumeric('cakephp')) {
  92. echo '<p><span class="notice">';
  93. __('PCRE has not been compiled with Unicode support.');
  94. echo '<br/>';
  95. __('Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring');
  96. echo '</span></p>';
  97. }
  98. ?>
  99. <h3><?php echo __d('cake_dev', 'Editing this Page'); ?></h3>
  100. <p>
  101. <?php
  102. echo __d('cake_dev', 'To change the content of this page, create: APP/views/pages/home.ctp.<br />
  103. To change its layout, create: APP/views/layouts/default.ctp.<br />
  104. You can also add some CSS styles for your pages at: APP/webroot/css.');
  105. ?>
  106. </p>
  107. <h3><?php echo __d('cake_dev', 'Getting Started'); ?></h3>
  108. <p>
  109. <?php
  110. echo $this->Html->link(
  111. sprintf('<strong>%s</strong> %s', __d('cake_dev', 'New'), __d('cake_dev', 'CakePHP 1.3 Docs')),
  112. 'http://book.cakephp.org/view/875/x1-3-Collection',
  113. array('target' => '_blank', 'escape' => false)
  114. );
  115. ?>
  116. </p>
  117. <p>
  118. <?php
  119. echo $this->Html->link(
  120. __d('cake_dev', 'The 15 min Blog Tutorial'),
  121. 'http://book.cakephp.org/view/1528/Blog',
  122. array('target' => '_blank', 'escape' => false)
  123. );
  124. ?>
  125. </p>
  126. <h3><?php echo __d('cake_dev', 'More about Cake'); ?></h3>
  127. <p>
  128. <?php echo __d('cake_dev', 'CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Active Record, Association Data Mapping, Front Controller and MVC.'); ?>
  129. </p>
  130. <p>
  131. <?php echo __d('cake_dev', 'Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility.'); ?>
  132. </p>
  133. <ul>
  134. <li><a href="http://cakefoundation.org/"><?php echo __d('cake_dev', 'Cake Software Foundation'); ?> </a>
  135. <ul><li><?php echo __d('cake_dev', 'Promoting development related to CakePHP'); ?></li></ul></li>
  136. <li><a href="http://www.cakephp.org"><?php echo __d('cake_dev', 'CakePHP'); ?> </a>
  137. <ul><li><?php echo __d('cake_dev', 'The Rapid Development Framework'); ?></li></ul></li>
  138. <li><a href="http://book.cakephp.org"><?php echo __d('cake_dev', 'CakePHP Documentation'); ?> </a>
  139. <ul><li><?php echo __d('cake_dev', 'Your Rapid Development Cookbook'); ?></li></ul></li>
  140. <li><a href="http://api.cakephp.org"><?php echo __d('cake_dev', 'CakePHP API'); ?> </a>
  141. <ul><li><?php echo __d('cake_dev', 'Quick Reference'); ?></li></ul></li>
  142. <li><a href="http://bakery.cakephp.org"><?php echo __d('cake_dev', 'The Bakery'); ?> </a>
  143. <ul><li><?php echo __d('cake_dev', 'Everything CakePHP'); ?></li></ul></li>
  144. <li><a href="http://live.cakephp.org"><?php echo __d('cake_dev', 'The Show'); ?> </a>
  145. <ul><li><?php echo __d('cake_dev', 'The Show is a live and archived internet radio broadcast CakePHP-related topics and answer questions live via IRC, Skype, and telephone.'); ?></li></ul></li>
  146. <li><a href="http://groups.google.com/group/cake-php"><?php echo __d('cake_dev', 'CakePHP Google Group'); ?> </a>
  147. <ul><li><?php echo __d('cake_dev', 'Community mailing list'); ?></li></ul></li>
  148. <li><a href="irc://irc.freenode.net/cakephp">irc.freenode.net #cakephp</a>
  149. <ul><li><?php echo __d('cake_dev', 'Live chat about CakePHP'); ?></li></ul></li>
  150. <li><a href="http://github.com/cakephp/"><?php echo __d('cake_dev', 'CakePHP Code'); ?> </a>
  151. <ul><li><?php echo __d('cake_dev', 'For the Development of CakePHP Git repository, Downloads'); ?></li></ul></li>
  152. <li><a href="http://cakephp.lighthouseapp.com/"><?php echo __d('cake_dev', 'CakePHP Lighthouse'); ?> </a>
  153. <ul><li><?php echo __d('cake_dev', 'CakePHP Tickets, Wiki pages, Roadmap'); ?></li></ul></li>
  154. <li><a href="http://www.cakeforge.org"><?php echo __d('cake_dev', 'CakeForge'); ?> </a>
  155. <ul><li><?php echo __d('cake_dev', 'Open Development for CakePHP'); ?></li></ul></li>
  156. <li><a href="http://astore.amazon.com/cakesoftwaref-20/"><?php echo __d('cake_dev', 'Book Store'); ?> </a>
  157. <ul><li><?php echo __d('cake_dev', 'Recommended Software Books'); ?></li></ul></li>
  158. <li><a href="http://www.cafepress.com/cakefoundation"><?php echo __d('cake_dev', 'CakePHP gear'); ?> </a>
  159. <ul><li><?php echo __d('cake_dev', 'Get your own CakePHP gear - Doughnate to Cake'); ?></li></ul></li>
  160. </ul>