home.ctp 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <?php
  2. use Cake\Cache\Cache;
  3. use Cake\Core\Configure;
  4. use Cake\Core\Plugin;
  5. use Cake\Datasource\ConnectionManager;
  6. use Cake\Error;
  7. use Cake\Error\Debugger;
  8. use Cake\Validation\Validation;
  9. if (!Configure::read('debug')):
  10. throw new Error\NotFoundException();
  11. endif;
  12. ?>
  13. <h2><?= sprintf('Release Notes for CakePHP %s.', Configure::version()); ?></h2>
  14. <p>
  15. <a href="https://cakephp.org/changelogs/<?= Configure::version(); ?>">Read the changelog</a>
  16. </p>
  17. <?php if (file_exists(WWW_ROOT . 'css' . DS . 'cake.generic.css')): ?>
  18. <p id="url-rewriting-warning" style="background-color:#e32; color:#fff;">
  19. URL rewriting is not properly configured on your server.
  20. 1) <a target="_blank" href="https://book.cakephp.org/3/en/installation/url-rewriting.html" style="color:#fff;">Help me configure it</a>
  21. 2) <a target="_blank" href="https://book.cakephp.org/3/en/development/configuration.html#core-configuration-baseurl" style="color:#fff;">I don't / can't use URL rewriting</a>
  22. </p>
  23. <?php endif; ?>
  24. <p>
  25. <?php if (version_compare(PHP_VERSION, '5.4.3', '>=')): ?>
  26. <span class="notice success">Your version of PHP is 5.4.3 or higher</span>
  27. <?php else: ?>
  28. <span class="notice">Your version of PHP is too low. You need PHP 5.4.3 or higher to use CakePHP.</span>
  29. <?php endif; ?>
  30. </p>
  31. <p>
  32. <?php if (extension_loaded('mbstring')): ?>
  33. <span class="notice success">Your version of PHP has mbstring extension loaded.</span>
  34. <?php else: ?>
  35. <span class="notice">Your version of PHP does NOT have the mbstring extension loaded.</span>
  36. <?php endif; ?>
  37. </p>
  38. <p>
  39. <?php if (is_writable(TMP)): ?>
  40. <span class="notice success">Your tmp directory is writable.</span>
  41. <?php else: ?>
  42. <span class="notice">Your tmp directory is NOT writable.</span>
  43. <?php endif; ?>
  44. </p>
  45. <p>
  46. <?php
  47. $engine = Cache::engine('_cake_model_');
  48. $settings = $engine ? $engine->config() : false;
  49. if (!empty($settings)): ?>
  50. <span class="notice success">The <em><?= $settings['engine'] ?>Engine</em> is being used for core caching. To change the config edit APP/Config/cache.php</span>
  51. <?php else: ?>
  52. <span class="notice">Your cache is NOT working. Please check the settings in APP/Config/cache.php</span>
  53. <?php endif; ?>
  54. </p>
  55. <p>
  56. <?php
  57. if (file_exists(APP . 'Config/datasources.php')): ?>
  58. <span class="notice success">Your datasources configuration file is present.</span>
  59. <?php else: ?>
  60. <span class="notice">
  61. Your datasources configuration file is NOT present.
  62. <br/>
  63. Rename APP/Config/datasources.default.php to APP/Config/datasources.php
  64. </span>
  65. <?php endif; ?>
  66. </p>
  67. <?php if (!Validation::alphaNumeric('cakephp')): ?>
  68. <p><span class="notice">'
  69. PCRE has not been compiled with Unicode support.';
  70. <br/>
  71. Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring
  72. </span></p>
  73. <?php endif; ?>
  74. <p>
  75. <?php if (Plugin::loaded('DebugKit')): ?>
  76. <span class="notice success">DebugKit plugin is present</span>
  77. <?php else: ?>
  78. <span class="notice">';
  79. DebugKit is not installed. It will help you inspect and debug different aspects of your application.
  80. <br/>
  81. You can install it from <?= $this->Html->link('GitHub', 'https://github.com/cakephp/debug_kit'); ?>
  82. </span>
  83. <?php endif; ?>
  84. </p>
  85. <h3>Editing this Page</h3>
  86. <p>
  87. To change the content of this page, edit: APP/View/Pages/home.ctp.<br/>
  88. To change its layout, edit: APP/View/Layout/default.ctp.<br/>
  89. You can also add some CSS styles for your pages at: APP/webroot/css.;
  90. </p>
  91. <h3>Getting Started</h3>
  92. <p>
  93. <?php
  94. echo $this->Html->link(
  95. '<strong>New</strong> CakePHP 3.0 Docs',
  96. 'https://book.cakephp.org/3/en/',
  97. ['target' => '_blank', 'escape' => false]
  98. );
  99. ?>
  100. </p>
  101. <p>
  102. <?php
  103. echo $this->Html->link(
  104. 'The 15 min Blog Tutorial',
  105. 'https://book.cakephp.org/3/en/getting-started.html#blog-tutorial',
  106. ['target' => '_blank', 'escape' => false]
  107. );
  108. ?>
  109. </p>
  110. <h3>Official Plugins</h3>
  111. <p>
  112. <ul>
  113. <li>
  114. <?= $this->Html->link('DebugKit', 'https://github.com/cakephp/debug_kit') ?>:
  115. provides a debugging toolbar and enhanced debugging tools for CakePHP application.
  116. </li>
  117. <li>
  118. <?= $this->Html->link('Localized', 'https://github.com/cakephp/localized') ?>:
  119. contains various localized validation classes and translations for specific countries
  120. </li>
  121. </ul>
  122. </p>
  123. <h3>More about CakePHP</h3>
  124. <p>
  125. CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Active Record, Association Data Mapping, Front Controller and MVC.
  126. </p>
  127. <p>
  128. 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.
  129. </p>
  130. <ul
  131. <li><a href="https://cakephp.org">CakePHP</a>
  132. <ul><li>The Rapid Development Framework</li></ul></li>
  133. <li><a href="https://book.cakephp.org">CakePHP Documentation </a>
  134. <ul><li>Your Rapid Development Cookbook</li></ul></li>
  135. <li><a href="https://api.cakephp.org">CakePHP API </a>
  136. <ul><li>Quick API Reference</li></ul></li>
  137. <li><a href="https://bakery.cakephp.org">The Bakery </a>
  138. <ul><li>Everything CakePHP</li></ul></li>
  139. <li><a href="https://plugins.cakephp.org">CakePHP Plugins </a>
  140. <ul><li>A comprehensive list of all CakePHP plugins created by the community</li></ul></li>
  141. <li><a href="https://community.cakephp.org">CakePHP Community Center </a>
  142. <ul><li>Everything related to the CakePHP community in one place</li></ul></li>
  143. <li><a href="https://groups.google.com/group/cake-php">CakePHP Google Group </a>
  144. <ul><li>Community mailing list</li></ul></li>
  145. <li><a href="irc://irc.freenode.net/cakephp">irc.freenode.net #cakephp</a>
  146. <ul><li>Live chat about CakePHP</li></ul></li>
  147. <li><a href="https://github.com/cakephp/">CakePHP Code </a>
  148. <ul><li>Find the CakePHP code on GitHub and contribute to the framework</li></ul></li>
  149. <li><a href="https://github.com/cakephp/cakephp/issues">CakePHP Issues </a>
  150. <ul><li>CakePHP Issues</li></ul></li>
  151. <li><a href="https://github.com/cakephp/cakephp/wiki#roadmaps">CakePHP Roadmaps </a>
  152. <ul><li>CakePHP Roadmaps</li></ul></li>
  153. <li><a href="https://training.cakephp.org">Training </a>
  154. <ul><li>Join a live session and get skilled with the framework</li></ul></li>
  155. <li><a href="https://cakefest.org">CakeFest </a>
  156. <ul><li>Don\'t miss our annual CakePHP conference</li></ul></li>
  157. <li><a href="https://cakefoundation.org">Cake Software Foundation </a>
  158. <ul><li>Promoting development related to CakePHP</li></ul></li>
  159. </ul>