Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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