統計
| ブランチ: | リビジョン:

pictcode / app / View / Pages / home.ctp @ 635eef61

履歴 | 表示 | アノテート | ダウンロード (8.875 KB)

1 635eef61 spyder1211
<?php
2
/**
3
 * @link          http://cakephp.org CakePHP(tm) Project
4
 * @package       app.View.Pages
5
 * @since         CakePHP(tm) v 0.10.0.1076
6
 */
7
8
if (!Configure::read('debug')):
9
	throw new NotFoundException();
10
endif;
11
12
App::uses('Debugger', 'Utility');
13
?>
14
<h2><?php echo __d('cake_dev', 'Release Notes for CakePHP %s.', Configure::version()); ?></h2>
15
<p>
16
	<?php echo $this->Html->link(__d('cake_dev', 'Read the changelog'), 'http://cakephp.org/changelogs/' . Configure::version()); ?>
17
</p>
18
<?php
19
if (Configure::read('debug') > 0):
20
	Debugger::checkSecurityKeys();
21
endif;
22
?>
23
<?php if (file_exists(WWW_ROOT . 'css' . DS . 'cake.generic.css')): ?>
24
	<p id="url-rewriting-warning" style="background-color:#e32; color:#fff;">
25
		<?php echo __d('cake_dev', 'URL rewriting is not properly configured on your server.'); ?>
26
		1) <a target="_blank" href="http://book.cakephp.org/2.0/en/installation/url-rewriting.html" style="color:#fff;">Help me configure it</a>
27
		2) <a target="_blank" href="http://book.cakephp.org/2.0/en/development/configuration.html#cakephp-core-configuration" style="color:#fff;">I don't / can't use URL rewriting</a>
28
	</p>
29
<?php endif; ?>
30
<p>
31
<?php
32
if (version_compare(PHP_VERSION, '5.2.8', '>=')):
33
	echo '<span class="notice success">';
34
		echo __d('cake_dev', 'Your version of PHP is 5.2.8 or higher.');
35
	echo '</span>';
36
else:
37
	echo '<span class="notice">';
38
		echo __d('cake_dev', 'Your version of PHP is too low. You need PHP 5.2.8 or higher to use CakePHP.');
39
	echo '</span>';
40
endif;
41
?>
42
</p>
43
<p>
44
	<?php
45
	if (is_writable(TMP)):
46
		echo '<span class="notice success">';
47
			echo __d('cake_dev', 'Your tmp directory is writable.');
48
		echo '</span>';
49
	else:
50
		echo '<span class="notice">';
51
			echo __d('cake_dev', 'Your tmp directory is NOT writable.');
52
		echo '</span>';
53
	endif;
54
	?>
55
</p>
56
<p>
57
	<?php
58
	$settings = Cache::settings();
59
	if (!empty($settings)):
60
		echo '<span class="notice success">';
61
			echo __d('cake_dev', 'The %s is being used for core caching. To change the config edit %s', '<em>' . $settings['engine'] . 'Engine</em>', 'APP/Config/core.php');
62
		echo '</span>';
63
	else:
64
		echo '<span class="notice">';
65
			echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in %s', 'APP/Config/core.php');
66
		echo '</span>';
67
	endif;
68
	?>
69
</p>
70
<p>
71
	<?php
72
	$filePresent = null;
73
	if (file_exists(APP . 'Config' . DS . 'database.php')):
74
		echo '<span class="notice success">';
75
			echo __d('cake_dev', 'Your database configuration file is present.');
76
			$filePresent = true;
77
		echo '</span>';
78
	else:
79
		echo '<span class="notice">';
80
			echo __d('cake_dev', 'Your database configuration file is NOT present.');
81
			echo '<br/>';
82
			echo __d('cake_dev', 'Rename %s to %s', 'APP/Config/database.php.default', 'APP/Config/database.php');
83
		echo '</span>';
84
	endif;
85
	?>
86
</p>
87
<?php
88
if (isset($filePresent)):
89
	App::uses('ConnectionManager', 'Model');
90
	try {
91
		$connected = ConnectionManager::getDataSource('default');
92
	} catch (Exception $connectionError) {
93
		$connected = false;
94
		$errorMsg = $connectionError->getMessage();
95
		if (method_exists($connectionError, 'getAttributes')):
96
			$attributes = $connectionError->getAttributes();
97
			if (isset($errorMsg['message'])):
98
				$errorMsg .= '<br />' . $attributes['message'];
99
			endif;
100
		endif;
101
	}
102
	?>
103
	<p>
104
		<?php
105
			if ($connected && $connected->isConnected()):
106
				echo '<span class="notice success">';
107
					echo __d('cake_dev', 'CakePHP is able to connect to the database.');
108
				echo '</span>';
109
			else:
110
				echo '<span class="notice">';
111
					echo __d('cake_dev', 'CakePHP is NOT able to connect to the database.');
112
					echo '<br /><br />';
113
					echo $errorMsg;
114
				echo '</span>';
115
			endif;
116
		?>
117
	</p>
118
<?php
119
endif;
120
121
App::uses('Validation', 'Utility');
122
if (!Validation::alphaNumeric('cakephp')):
123
	echo '<p><span class="notice">';
124
		echo __d('cake_dev', 'PCRE has not been compiled with Unicode support.');
125
		echo '<br/>';
126
		echo __d('cake_dev', 'Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring');
127
	echo '</span></p>';
128
endif;
129
?>
130
131
<p>
132
	<?php
133
	if (CakePlugin::loaded('DebugKit')):
134
		echo '<span class="notice success">';
135
			echo __d('cake_dev', 'DebugKit plugin is present');
136
		echo '</span>';
137
	else:
138
		echo '<span class="notice">';
139
			echo __d('cake_dev', 'DebugKit is not installed. It will help you inspect and debug different aspects of your application.');
140
			echo '<br/>';
141
			echo __d('cake_dev', 'You can install it from %s', $this->Html->link('GitHub', 'https://github.com/cakephp/debug_kit/tree/2.2'));
142
		echo '</span>';
143
	endif;
144
	?>
145
</p>
146
147
<h3><?php echo __d('cake_dev', 'Editing this Page'); ?></h3>
148
<p>
149
<?php
150
echo __d('cake_dev', 'To change the content of this page, edit: %s.<br />
151
To change its layout, edit: %s.<br />
152
You can also add some CSS styles for your pages at: %s.',
153
	'APP/View/Pages/home.ctp', 'APP/View/Layouts/default.ctp', 'APP/webroot/css');
154
?>
155
</p>
156
157
<h3><?php echo __d('cake_dev', 'Getting Started'); ?></h3>
158
<p>
159
	<?php
160
	echo $this->Html->link(
161
		sprintf('<strong>%s</strong> %s', __d('cake_dev', 'New'), __d('cake_dev', 'CakePHP 2.0 Docs')),
162
		'http://book.cakephp.org/2.0/en/',
163
		array('target' => '_blank', 'escape' => false)
164
	);
165
	?>
166
</p>
167
<p>
168
	<?php
169
	echo $this->Html->link(
170
		__d('cake_dev', 'The 15 min Blog Tutorial'),
171
		'http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html',
172
		array('target' => '_blank', 'escape' => false)
173
	);
174
	?>
175
</p>
176
177
<h3><?php echo __d('cake_dev', 'Official Plugins'); ?></h3>
178
<p>
179
<ul>
180
	<li>
181
		<?php echo $this->Html->link('DebugKit', 'https://github.com/cakephp/debug_kit/tree/2.2') ?>:
182
		<?php echo __d('cake_dev', 'provides a debugging toolbar and enhanced debugging tools for CakePHP applications.'); ?>
183
	</li>
184
	<li>
185
		<?php echo $this->Html->link('Localized', 'https://github.com/cakephp/localized') ?>:
186
		<?php echo __d('cake_dev', 'contains various localized validation classes and translations for specific countries'); ?>
187
	</li>
188
</ul>
189
</p>
190
191
<h3><?php echo __d('cake_dev', 'More about CakePHP'); ?></h3>
192
<p>
193
<?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.'); ?>
194
</p>
195
<p>
196
<?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.'); ?>
197
</p>
198
199
<ul>
200
	<li><a href="http://cakephp.org">CakePHP</a>
201
	<ul><li><?php echo __d('cake_dev', 'The Rapid Development Framework'); ?></li></ul></li>
202
	<li><a href="http://book.cakephp.org"><?php echo __d('cake_dev', 'CakePHP Documentation'); ?> </a>
203
	<ul><li><?php echo __d('cake_dev', 'Your Rapid Development Cookbook'); ?></li></ul></li>
204
	<li><a href="http://api.cakephp.org"><?php echo __d('cake_dev', 'CakePHP API'); ?> </a>
205
	<ul><li><?php echo __d('cake_dev', 'Quick API Reference'); ?></li></ul></li>
206
	<li><a href="http://bakery.cakephp.org"><?php echo __d('cake_dev', 'The Bakery'); ?> </a>
207
	<ul><li><?php echo __d('cake_dev', 'Everything CakePHP'); ?></li></ul></li>
208
	<li><a href="http://plugins.cakephp.org"><?php echo __d('cake_dev', 'CakePHP Plugins'); ?> </a>
209
	<ul><li><?php echo __d('cake_dev', 'A comprehensive list of all CakePHP plugins created by the community'); ?></li></ul></li>
210
	<li><a href="http://community.cakephp.org"><?php echo __d('cake_dev', 'CakePHP Community Center'); ?> </a>
211
	<ul><li><?php echo __d('cake_dev', 'Everything related to the CakePHP community in one place'); ?></li></ul></li>
212
	<li><a href="https://groups.google.com/group/cake-php"><?php echo __d('cake_dev', 'CakePHP Google Group'); ?> </a>
213
	<ul><li><?php echo __d('cake_dev', 'Community mailing list'); ?></li></ul></li>
214
	<li><a href="irc://irc.freenode.net/cakephp">irc.freenode.net #cakephp</a>
215
	<ul><li><?php echo __d('cake_dev', 'Live chat about CakePHP'); ?></li></ul></li>
216
	<li><a href="https://github.com/cakephp/"><?php echo __d('cake_dev', 'CakePHP Code'); ?> </a>
217
	<ul><li><?php echo __d('cake_dev', 'Find the CakePHP code on GitHub and contribute to the framework'); ?></li></ul></li>
218
	<li><a href="https://github.com/cakephp/cakephp/issues"><?php echo __d('cake_dev', 'CakePHP Issues'); ?> </a>
219
	<ul><li><?php echo __d('cake_dev', 'CakePHP Issues'); ?></li></ul></li>
220
	<li><a href="https://github.com/cakephp/cakephp/wiki#roadmaps"><?php echo __d('cake_dev', 'CakePHP Roadmaps'); ?> </a>
221
	<ul><li><?php echo __d('cake_dev', 'CakePHP Roadmaps'); ?></li></ul></li>
222
	<li><a href="http://training.cakephp.org"><?php echo __d('cake_dev', 'Training'); ?> </a>
223
	<ul><li><?php echo __d('cake_dev', 'Join a live session and get skilled with the framework'); ?></li></ul></li>
224
	<li><a href="http://cakefest.org"><?php echo __d('cake_dev', 'CakeFest'); ?> </a>
225
	<ul><li><?php echo __d('cake_dev', 'Don\'t miss our annual CakePHP conference'); ?></li></ul></li>
226
	<li><a href="http://cakefoundation.org"><?php echo __d('cake_dev', 'Cake Software Foundation'); ?> </a>
227
	<ul><li><?php echo __d('cake_dev', 'Promoting development related to CakePHP'); ?></li></ul></li>
228
</ul>