Mercurial > hg > Members > shoshi > webvirt
comparison cake/tests/test_app/views/pages/home.ctp @ 0:261e66bd5a0c
hg init
author | Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 24 Jul 2011 21:08:31 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:261e66bd5a0c |
---|---|
1 <h2>Sweet, "Test App" got Baked by CakePHP!</h2> | |
2 | |
3 <?php | |
4 if (Configure::read() > 0): | |
5 Debugger::checkSecurityKeys(); | |
6 endif; | |
7 ?> | |
8 <p> | |
9 <?php | |
10 if (is_writable(TMP)): | |
11 echo '<span class="notice success">'; | |
12 __('Your tmp directory is writable.'); | |
13 echo '</span>'; | |
14 else: | |
15 echo '<span class="notice">'; | |
16 __('Your tmp directory is NOT writable.'); | |
17 echo '</span>'; | |
18 endif; | |
19 ?> | |
20 </p> | |
21 <p> | |
22 <?php | |
23 $settings = Cache::settings(); | |
24 if (!empty($settings)): | |
25 echo '<span class="notice success">'; | |
26 printf(__('The %s is being used for caching. To change the config edit APP/config/core.php ', true), '<em>'. $settings['engine'] . 'Engine</em>'); | |
27 echo '</span>'; | |
28 else: | |
29 echo '<span class="notice">'; | |
30 __('Your cache is NOT working. Please check the settings in APP/config/core.php'); | |
31 echo '</span>'; | |
32 endif; | |
33 ?> | |
34 </p> | |
35 <p> | |
36 <?php | |
37 $filePresent = null; | |
38 if (file_exists(CONFIGS . 'database.php')): | |
39 echo '<span class="notice success">'; | |
40 __('Your database configuration file is present.'); | |
41 $filePresent = true; | |
42 echo '</span>'; | |
43 else: | |
44 echo '<span class="notice">'; | |
45 __('Your database configuration file is NOT present.'); | |
46 echo '<br/>'; | |
47 __('Rename config/database.php.default to config/database.php'); | |
48 echo '</span>'; | |
49 endif; | |
50 ?> | |
51 </p> | |
52 <?php | |
53 if (!empty($filePresent)): | |
54 if (!class_exists('ConnectionManager')) { | |
55 require LIBS . 'model' . DS . 'connection_manager.php'; | |
56 } | |
57 $db = ConnectionManager::getInstance(); | |
58 $connected = $db->getDataSource('default'); | |
59 ?> | |
60 <p> | |
61 <?php | |
62 if ($connected->isConnected()): | |
63 echo '<span class="notice success">'; | |
64 __('Cake is able to connect to the database.'); | |
65 echo '</span>'; | |
66 else: | |
67 echo '<span class="notice">'; | |
68 __('Cake is NOT able to connect to the database.'); | |
69 echo '</span>'; | |
70 endif; | |
71 ?> | |
72 </p> | |
73 <?php endif;?> | |
74 <h3><?php __('Editing this Page') ?></h3> | |
75 <p> | |
76 <?php | |
77 printf(__('To change the content of this page, edit: %s | |
78 To change its layout, edit: %s | |
79 You can also add some CSS styles for your pages at: %s', true), | |
80 APP . 'views' . DS . 'pages' . DS . 'home.ctp.<br />', APP . 'views' . DS . 'layouts' . DS . 'default.ctp.<br />', APP . 'webroot' . DS . 'css'); | |
81 ?> | |
82 </p> |