3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
6 * Licensed under The MIT License
7 * For full copyright and license information, please see the LICENSE.txt
8 * Redistributions of files must retain the above copyright notice.
10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11 * @link http://cakephp.org CakePHP(tm) Project
13 * @license http://www.opensource.org/licenses/mit-license.php MIT License
16 use Cake\Core\Configure;
18 use Cake\Datasource\ConnectionManager;
19 use Cake\Error\Debugger;
20 use Cake\Network\Exception\NotFoundException;
22 $this->layout = false;
24 if (! Configure::read ( 'debug' )) :
25 throw new NotFoundException ( 'Please replace src/Template/Pages/home.ctp with your own version.' );
28 $cakeDescription = 'CakePHP: the rapid development PHP framework';
33 <?= $this->Html->charset() ?>
35 content="width=device-width, initial-scale=1.0">
37 <?= $cakeDescription ?>
40 <?= $this->Html->meta('icon') ?>
41 <?= $this->Html->css('base.css') ?>
42 <?= $this->Html->css('cake.css') ?>
43 <?= $this->Html->css('home.css') ?>
45 href="https://fonts.googleapis.com/css?family=Raleway:500i|Roboto:300,400,700|Roboto+Mono"
53 <div class="header-image"><?= $this->Html->image('cake.logo.svg') ?></div>
54 <div class="header-title">
55 <h1>Welcome to CakePHP <?= Configure::version() ?> Red Velvet. Build fast. Grow solid.</h1>
59 <div class="fredmenu">
62 <li>Stored Authorizations <a href="/users">OAuth Users</a>
70 <div class="columns large-12">
71 <div class="ctp-warning alert text-center">
72 <p>Please be aware that this page will not be shown if you turn off
73 debug mode unless you replace src/Template/Pages/home.ctp with your
76 <div id="url-rewriting-warning" class="alert url-rewriting">
78 <li class="bullet problem">URL rewriting is not properly configured
79 on your server.<br /> 1) <a target="_blank"
80 href="http://book.cakephp.org/3.0/en/installation.html#url-rewriting">Help
81 me configure it</a><br /> 2) <a target="_blank"
82 href="http://book.cakephp.org/3.0/en/development/configuration.html#general-configuration">I
83 don't / can't use URL rewriting</a>
87 <?php Debugger::checkSecurityKeys(); ?>
92 <div class="columns large-6">
95 <?php if (version_compare(PHP_VERSION, '5.6.0', '>=')): ?>
96 <li class="bullet success">Your version of PHP is 5.6.0 or higher (detected <?= PHP_VERSION ?>).</li>
98 <li class="bullet problem">Your version of PHP is too low. You need PHP 5.6.0 or higher to use CakePHP (detected <?= PHP_VERSION ?>).</li>
101 <?php if (extension_loaded('mbstring')): ?>
102 <li class="bullet success">Your version of PHP has the
103 mbstring extension loaded.</li>
105 <li class="bullet problem">Your version of PHP does NOT have
106 the mbstring extension loaded.</li>;
109 <?php if (extension_loaded('openssl')): ?>
110 <li class="bullet success">Your version of PHP has the
111 openssl extension loaded.</li>
112 <?php elseif (extension_loaded('mcrypt')): ?>
113 <li class="bullet success">Your version of PHP has the
114 mcrypt extension loaded.</li>
116 <li class="bullet problem">Your version of PHP does NOT have
117 the openssl or mcrypt extension loaded.</li>
120 <?php if (extension_loaded('intl')): ?>
121 <li class="bullet success">Your version of PHP has the intl
122 extension loaded.</li>
124 <li class="bullet problem">Your version of PHP does NOT have
125 the intl extension loaded.</li>
129 <div class="columns large-6">
132 <?php if (is_writable(TMP)): ?>
133 <li class="bullet success">Your tmp directory is writable.</li>
135 <li class="bullet problem">Your tmp directory is NOT
139 <?php if (is_writable(LOGS)): ?>
140 <li class="bullet success">Your logs directory is writable.</li>
142 <li class="bullet problem">Your logs directory is NOT
146 <?php $settings = Cache::config('_cake_core_'); ?>
147 <?php if (!empty($settings)): ?>
148 <li class="bullet success">The <em><?= $settings['className'] ?>Engine</em>
149 is being used for core caching. To change the config edit
153 <li class="bullet problem">Your cache is NOT working. Please
154 check the settings in config/app.php</li>
162 <div class="columns large-6">
166 $connection = ConnectionManager::get ( 'default' );
167 $connected = $connection->connect ();
168 } catch ( Exception $connectionError ) {
170 $errorMsg = $connectionError->getMessage ();
171 if (method_exists ( $connectionError, 'getAttributes' )) :
172 $attributes = $connectionError->getAttributes ();
173 if (isset ( $errorMsg ['message'] )) :
174 $errorMsg .= '<br />' . $attributes ['message'];
182 <?php if ($connected): ?>
183 <li class="bullet success">CakePHP is able to connect to the
186 <li class="bullet problem">CakePHP is NOT able to connect to
187 the database.<br /><?= $errorMsg ?></li>
191 <div class="columns large-6">
194 <?php if (Plugin::loaded('DebugKit')): ?>
195 <li class="bullet success">DebugKit is loaded.</li>
197 <li class="bullet problem">DebugKit is NOT loaded. You need
198 to either install pdo_sqlite, or define the "debug_kit" connection
207 <div class="columns large-6">
208 <h3>Editing this Page</h3>
210 <li class="bullet cutlery">To change the content of this page, edit:
211 src/Template/Pages/home.ctp.</li>
212 <li class="bullet cutlery">You can also add some CSS styles for your
213 pages at: webroot/css/.</li>
216 <div class="columns large-6">
217 <h3>Getting Started</h3>
219 <li class="bullet book"><a target="_blank"
220 href="http://book.cakephp.org/3.0/en/">CakePHP 3.0 Docs</a></li>
221 <li class="bullet book"><a target="_blank"
222 href="http://book.cakephp.org/3.0/en/tutorials-and-examples/bookmarks/intro.html">The
223 15 min Bookmarker Tutorial</a></li>
224 <li class="bullet book"><a target="_blank"
225 href="http://book.cakephp.org/3.0/en/tutorials-and-examples/blog/blog.html">The
226 15 min Blog Tutorial</a></li>
234 <div class="columns large-12 text-center">
235 <h3 class="more">More about Cake</h3>
237 CakePHP is a rapid development framework for PHP which uses commonly
238 known design patterns like Front Controller and MVC.<br /> Our
239 primary goal is to provide a structured framework that enables PHP
240 users at all levels to rapidly develop robust web applications,
241 without any loss to flexibility.
248 <div class="columns large-4">
249 <i class="icon support">P</i>
250 <h3>Help and Bug Reports</h3>
252 <li class="bullet cutlery"><a href="irc://irc.freenode.net/cakephp">irc.freenode.net
255 <li>Live chat about CakePHP</li>
257 <li class="bullet cutlery"><a
258 href="https://github.com/cakephp/cakephp/issues">CakePHP Issues</a>
260 <li>CakePHP issues and pull requests</li>
262 <li class="bullet cutlery"><a href="http://discourse.cakephp.org/">CakePHP
265 <li>CakePHP official discussion forum</li>
267 <li class="bullet cutlery"><a
268 href="https://groups.google.com/group/cake-php">CakePHP Google
271 <li>Community mailing list</li>
275 <div class="columns large-4">
276 <i class="icon docs">r</i>
277 <h3>Docs and Downloads</h3>
279 <li class="bullet cutlery"><a href="http://api.cakephp.org/3.0/">CakePHP
282 <li>Quick Reference</li>
284 <li class="bullet cutlery"><a href="http://book.cakephp.org/3.0/en/">CakePHP
287 <li>Your Rapid Development Cookbook</li>
289 <li class="bullet cutlery"><a href="http://bakery.cakephp.org">The
292 <li>Everything CakePHP</li>
294 <li class="bullet cutlery"><a href="http://plugins.cakephp.org">CakePHP
297 <li>A comprehensive list of all CakePHP plugins created by the
300 <li class="bullet cutlery"><a href="https://github.com/cakephp/">CakePHP
303 <li>For the Development of CakePHP Git repository, Downloads</li>
305 <li class="bullet cutlery"><a
306 href="https://github.com/FriendsOfCake/awesome-cakephp">CakePHP
309 <li>A curated list of amazingly awesome CakePHP plugins, resources
310 and shiny things.</li>
312 <li class="bullet cutlery"><a href="http://www.cakephp.org">CakePHP</a>
314 <li>The Rapid Development Framework</li>
318 <div class="columns large-4">
319 <i class="icon training">s</i>
320 <h3>Training and Certification</h3>
322 <li class="bullet cutlery"><a href="http://cakefoundation.org/">Cake
323 Software Foundation</a>
325 <li>Promoting development related to CakePHP</li>
327 <li class="bullet cutlery"><a href="http://training.cakephp.org/">CakePHP
330 <li>Learn to use the CakePHP framework</li>
332 <li class="bullet cutlery"><a
333 href="http://certification.cakephp.org/">CakePHP Certification</a>
335 <li>Become a certified CakePHP developer</li>