Blame view

src/Template/Pages/home.default.ctp 9.24 KB
64fba1a2   Alexandre   Base du projet : ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @since         0.10.0
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 */
use Cake\Cache\Cache;
use Cake\Core\Configure;
use Cake\Datasource\ConnectionManager;
use Cake\Error\Debugger;
use Cake\Network\Exception\NotFoundException;

$this->layout = false;

63c3cb16   epallier   Nombreux petits b...
23
if (! Configure::read('debug')) :
64fba1a2   Alexandre   Base du projet : ...
24
25
26
27
28
29
30
31
32
    throw new NotFoundException('Please replace src/Template/Pages/home.ctp with your own version.');
endif;

$cakeDescription = 'CakePHP: the rapid development PHP framework';
?>
<!DOCTYPE html>
<html>
<head>
    <?= $this->Html->charset() ?>
63c3cb16   epallier   Nombreux petits b...
33
34
35
    <meta name="viewport"
	content="width=device-width, initial-scale=1.0">
<title>
64fba1a2   Alexandre   Base du projet : ...
36
37
38
39
40
41
42
        <?= $cakeDescription ?>
    </title>
    <?= $this->Html->meta('icon') ?>
    <?= $this->Html->css('base.css') ?>
    <?= $this->Html->css('cake.css') ?>
</head>
<body class="home">
63c3cb16   epallier   Nombreux petits b...
43
44
	<header>
		<div class="header-image">
64fba1a2   Alexandre   Base du projet : ...
45
46
            <?= $this->Html->image('http://cakephp.org/img/cake-logo.png') ?>
            <h1>Get the Ovens Ready</h1>
63c3cb16   epallier   Nombreux petits b...
47
48
49
50
51
52
53
		</div>
	</header>
	<div id="content">
		<div class="row">
			<div class="columns large-12 ctp-warning checks">Please be aware that
				this page will not be shown if you turn off debug mode unless you
				replace src/Template/Pages/home.ctp with your own version.</div>
64fba1a2   Alexandre   Base du projet : ...
54
            <?php Debugger::checkSecurityKeys(); ?>
63c3cb16   epallier   Nombreux petits b...
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
            <div id="url-rewriting-warning"
				class="columns large-12 url-rewriting checks">
				<p class="problem">URL rewriting is not properly configured on your
					server.</p>
				<p>
					1) <a target="_blank"
						href="http://book.cakephp.org/3.0/en/installation.html#url-rewriting">Help
						me configure it</a>
				</p>
				<p>
					2) <a target="_blank"
						href="http://book.cakephp.org/3.0/en/development/configuration.html#general-configuration">I
						don't / can't use URL rewriting</a>
				</p>
			</div>
64fba1a2   Alexandre   Base du projet : ...
70

63c3cb16   epallier   Nombreux petits b...
71
72
			<div class="columns large-12 checks">
				<h4>Environment</h4>
64fba1a2   Alexandre   Base du projet : ...
73
                <?php if (version_compare(PHP_VERSION, '5.5.9', '>=')): ?>
63c3cb16   epallier   Nombreux petits b...
74
75
                    <p class="success">Your version of PHP is 5.5.9 or
					higher.</p>
64fba1a2   Alexandre   Base du projet : ...
76
                <?php else: ?>
63c3cb16   epallier   Nombreux petits b...
77
78
                    <p class="problem">Your version of PHP is too low.
					You need PHP 5.5.9 or higher to use CakePHP.</p>
64fba1a2   Alexandre   Base du projet : ...
79
80
81
                <?php endif; ?>

                <?php if (extension_loaded('mbstring')): ?>
63c3cb16   epallier   Nombreux petits b...
82
83
                    <p class="success">Your version of PHP has the
					mbstring extension loaded.</p>
64fba1a2   Alexandre   Base du projet : ...
84
                <?php else: ?>
63c3cb16   epallier   Nombreux petits b...
85
86
                    <p class="problem">Your version of PHP does NOT have
					the mbstring extension loaded.</p>;
64fba1a2   Alexandre   Base du projet : ...
87
88
89
                <?php endif; ?>

                <?php if (extension_loaded('openssl')): ?>
63c3cb16   epallier   Nombreux petits b...
90
91
                    <p class="success">Your version of PHP has the
					openssl extension loaded.</p>
64fba1a2   Alexandre   Base du projet : ...
92
                <?php elseif (extension_loaded('mcrypt')): ?>
63c3cb16   epallier   Nombreux petits b...
93
94
                    <p class="success">Your version of PHP has the
					mcrypt extension loaded.</p>
64fba1a2   Alexandre   Base du projet : ...
95
                <?php else: ?>
63c3cb16   epallier   Nombreux petits b...
96
97
                    <p class="problem">Your version of PHP does NOT have
					the openssl or mcrypt extension loaded.</p>
64fba1a2   Alexandre   Base du projet : ...
98
99
100
                <?php endif; ?>

                <?php if (extension_loaded('intl')): ?>
63c3cb16   epallier   Nombreux petits b...
101
102
                    <p class="success">Your version of PHP has the intl
					extension loaded.</p>
64fba1a2   Alexandre   Base du projet : ...
103
                <?php else: ?>
63c3cb16   epallier   Nombreux petits b...
104
105
                    <p class="problem">Your version of PHP does NOT have
					the intl extension loaded.</p>
64fba1a2   Alexandre   Base du projet : ...
106
107
108
                <?php endif; ?>
                <hr>

63c3cb16   epallier   Nombreux petits b...
109
				<h4>Filesystem</h4>
64fba1a2   Alexandre   Base du projet : ...
110
111
112
                <?php if (is_writable(TMP)): ?>
                    <p class="success">Your tmp directory is writable.</p>
                <?php else: ?>
63c3cb16   epallier   Nombreux petits b...
113
114
                    <p class="problem">Your tmp directory is NOT
					writable.</p>
64fba1a2   Alexandre   Base du projet : ...
115
116
117
118
119
                <?php endif; ?>

                <?php if (is_writable(LOGS)): ?>
                    <p class="success">Your logs directory is writable.</p>
                <?php else: ?>
63c3cb16   epallier   Nombreux petits b...
120
121
                    <p class="problem">Your logs directory is NOT
					writable.</p>
64fba1a2   Alexandre   Base du projet : ...
122
123
124
125
                <?php endif; ?>

                <?php $settings = Cache::config('_cake_core_'); ?>
                <?php if (!empty($settings)): ?>
63c3cb16   epallier   Nombreux petits b...
126
127
128
129
                    <p class="success">
					The <em><?= $settings['className'] ?>Engine</em> is being used for
					core caching. To change the config edit config/app.php
				</p>
64fba1a2   Alexandre   Base du projet : ...
130
                <?php else: ?>
63c3cb16   epallier   Nombreux petits b...
131
132
                    <p class="problem">Your cache is NOT working. Please
					check the settings in config/app.php</p>
64fba1a2   Alexandre   Base du projet : ...
133
134
135
                <?php endif; ?>

                <hr>
63c3cb16   epallier   Nombreux petits b...
136
				<h4>Database</h4>
64fba1a2   Alexandre   Base du projet : ...
137
                <?php
63c3cb16   epallier   Nombreux petits b...
138
139
140
141
142
143
144
145
146
147
                try {
                    $connection = ConnectionManager::get('default');
                    $connected = $connection->connect();
                } catch (Exception $connectionError) {
                    $connected = false;
                    $errorMsg = $connectionError->getMessage();
                    if (method_exists($connectionError, 'getAttributes')) :
                        $attributes = $connectionError->getAttributes();
                        if (isset($errorMsg['message'])) :
                            $errorMsg .= '<br />' . $attributes['message'];
64fba1a2   Alexandre   Base du projet : ...
148
149
                            endif;
                        endif;
63c3cb16   epallier   Nombreux petits b...
150
151
152
                        
                    
                }
64fba1a2   Alexandre   Base du projet : ...
153
154
                ?>
                <?php if ($connected): ?>
63c3cb16   epallier   Nombreux petits b...
155
156
                    <p class="success">CakePHP is able to connect to the
					database.</p>
64fba1a2   Alexandre   Base du projet : ...
157
                <?php else: ?>
63c3cb16   epallier   Nombreux petits b...
158
159
160
                    <p class="problem">
					CakePHP is NOT able to connect to the database.<br />
					<br /><?= $errorMsg ?></p>
64fba1a2   Alexandre   Base du projet : ...
161
162
                <?php endif; ?>
            </div>
63c3cb16   epallier   Nombreux petits b...
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
		</div>

		<div class="row">
			<div class="columns large-6">
				<h3>Editing this Page</h3>
				<ul>
					<li>To change the content of this page, edit:
						src/Template/Pages/home.ctp.</li>
					<li>You can also add some CSS styles for your pages at:
						webroot/css/.</li>
				</ul>
			</div>
			<div class="columns large-6">
				<h3>Getting Started</h3>
				<ul>
					<li><a target="_blank" href="http://book.cakephp.org/3.0/en/">CakePHP
							3.0 Docs</a></li>
					<li><a target="_blank"
						href="http://book.cakephp.org/3.0/en/tutorials-and-examples/bookmarks/intro.html">The
							15 min Bookmarker Tutorial</a></li>
					<li><a target="_blank"
						href="http://book.cakephp.org/3.0/en/tutorials-and-examples/blog/blog.html">The
							15 min Blog Tutorial</a></li>
				</ul>
				<p>
			
			</div>
		</div>
		<hr />

		<div class="row">
			<div class="columns large-12">
				<h3 class="">More about Cake</h3>
				<p>CakePHP is a rapid development framework for PHP which uses
					commonly known design patterns like Front Controller and MVC.</p>
				<p>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.</p>

				<h3>Help and Bug Reports</h3>
				<ul>
					<li><a href="irc://irc.freenode.net/cakephp">irc.freenode.net
							#cakephp</a>
						<ul>
							<li>Live chat about CakePHP</li>
						</ul></li>
					<li><a href="https://github.com/cakephp/cakephp/issues">CakePHP
							Issues</a>
						<ul>
							<li>CakePHP issues and pull requests</li>
						</ul></li>
					<li><a href="https://groups.google.com/group/cake-php">CakePHP
							Google Group</a>
						<ul>
							<li>Community mailing list</li>
						</ul></li>
				</ul>

				<h3>Docs and Downloads</h3>
				<ul>
					<li><a href="http://api.cakephp.org/3.0/">CakePHP API</a>
						<ul>
							<li>Quick Reference</li>
						</ul></li>
					<li><a href="http://book.cakephp.org/3.0/en/">CakePHP Documentation</a>
						<ul>
							<li>Your Rapid Development Cookbook</li>
						</ul></li>
					<li><a href="http://bakery.cakephp.org">The Bakery</a>
						<ul>
							<li>Everything CakePHP</li>
						</ul></li>
					<li><a href="http://plugins.cakephp.org">CakePHP plugins repo</a>
						<ul>
							<li>A comprehensive list of all CakePHP plugins created by the
								community</li>
						</ul></li>
					<li><a href="https://github.com/cakephp/">CakePHP Code</a>
						<ul>
							<li>For the Development of CakePHP Git repository, Downloads</li>
						</ul></li>
					<li><a href="http://www.cakephp.org">CakePHP</a>
						<ul>
							<li>The Rapid Development Framework</li>
						</ul></li>
				</ul>

				<h3>Training and Certification</h3>
				<ul>
					<li><a href="http://cakefoundation.org/">Cake Software Foundation</a>
						<ul>
							<li>Promoting development related to CakePHP</li>
						</ul></li>
					<li><a href="http://training.cakephp.org/">CakePHP Training</a>
						<ul>
							<li>Learn to use the CakePHP framework</li>
						</ul></li>
					<li><a href="http://certification.cakephp.org/">CakePHP
							Certification</a>
						<ul>
							<li>Become a certified CakePHP developer</li>
						</ul></li>
				</ul>
			</div>
		</div>
	</div>
64fba1a2   Alexandre   Base du projet : ...
269
270
</body>
</html>