comparison cake/tests/test_app/views/posts/test_nocache_tags.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 <?php
2 /**
3 *
4 * PHP versions 4 and 5
5 *
6 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
7 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
8 *
9 * Licensed under The MIT License
10 * Redistributions of files must retain the above copyright notice.
11 *
12 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
13 * @link http://cakephp.org CakePHP(tm) Project
14 * @package cake
15 * @subpackage cake.cake.libs.view.templates.pages
16 * @since CakePHP(tm) v 0.10.0.1076
17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
18 */
19 ?>
20 <p>
21 <cake:nocache>
22 <span class="notice">
23 <?php
24 __('Your tmp directory is ');
25 if (is_writable(TMP)):
26 __('writable.');
27 else:
28 __('NOT writable.');
29 endif;
30 ?>
31 </span>
32 </cake:nocache>
33 </p>
34 <p>
35 <span class="notice">
36 <?php
37 __('Your cache is ');
38 if (Cache::isInitialized()):
39 __('set up and initialized properly.');
40 $settings = Cache::settings();
41 echo '<p>' . $settings['engine'];
42 __(' is being used to cache, to change this edit config/core.php ');
43 echo '</p>';
44
45 echo 'Settings: <ul>';
46 foreach ($settings as $name => $value):
47 echo '<li>' . $name . ': ' . $value . '</li>';
48 endforeach;
49 echo '</ul>';
50
51 else:
52 __('NOT working.');
53 echo '<br />';
54 if (is_writable(TMP)):
55 __('Edit: config/core.php to insure you have the newset version of this file and the variable $cakeCache set properly');
56 endif;
57 endif;
58 ?>
59 </span>
60 </p>
61 <p>
62 <span class="notice">
63 <?php
64 __('Your database configuration file is ');
65 $filePresent = null;
66 if (file_exists(CONFIGS.'database.php')):
67 __('present.');
68 $filePresent = true;
69 else:
70 __('NOT present.');
71 echo '<br/>';
72 __('Rename config/database.php.default to config/database.php');
73 endif;
74 ?>
75 </span>
76 </p>
77 <?php
78 if (!empty($filePresent)):
79 if (!class_exists('ConnectionManager')) {
80 require LIBS . 'model' . DS . 'connection_manager.php';
81 }
82 $db = ConnectionManager::getInstance();
83 $connected = $db->getDataSource('default');
84 ?>
85 <p>
86 <span class="notice">
87 <?php
88 __('Cake');
89 if ($connected->isConnected()):
90 __(' is able to ');
91 else:
92 __(' is NOT able to ');
93 endif;
94 __('connect to the database.');
95 ?>
96 </span>
97 </p>
98 <?php endif; ?>
99 <h2><?php printf(__('Release Notes for CakePHP %s.', true), Configure::version()); ?></h2>
100 <a href="https://trac.cakephp.org/wiki/notes/1.2.x.x"><?php __('Read the release notes and get the latest version'); ?> </a>
101 <h2><?php __('Editing this Page'); ?></h2>
102 <p>
103 <?php __('To change the content of this page, create: /app/views/pages/home.ctp.'); ?><br />
104 <?php __('To change its layout, create: /app/views/layouts/default.ctp.'); ?><br />
105 <a href="http://manual.cakephp.org/"><?php __('See the views section of the manual for more info.'); ?> </a><br />
106 <?php __('You can also add some CSS styles for your pages at: app/webroot/css/.'); ?>
107 </p>
108 <h2><?php __('Getting Started'); ?></h2>
109 <p>
110 <a href="http://manual.cakephp.org/appendix/blog_tutorial"><?php __('The 15 min Blog Tutorial'); ?></a><br />
111 <a href="http://www-128.ibm.com/developerworks/edu/os-dw-os-php-cake1.html"><?php __('Cook up Web sites fast with CakePHP'); ?></a><br />
112 <a href="http://www-128.ibm.com/developerworks/edu/os-dw-os-php-wiki1.html"><?php __('Create an interactive production wiki using PHP'); ?></a>
113 </p>
114 <h2><?php __('More about Cake'); ?></h2>
115 <p>
116 <?php __('CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Active Record, Association Data Mapping, Front Controller and MVC.'); ?>
117 </p>
118 <p>
119 <?php __('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.'); ?>
120 </p>
121 <ul>
122 <li><a href="http://cakefoundation.org/"><?php __('Cake Software Foundation'); ?> </a>
123 <ul><li><?php __('Promoting development related to CakePHP'); ?></li></ul></li>
124 <li><a href="http://bakery.cakephp.org"><?php __('The Bakery'); ?> </a>
125 <ul><li><?php __('Everything CakePHP'); ?></li></ul></li>
126 <li><a href="http://astore.amazon.com/cakesoftwaref-20/"><?php __('Book Store'); ?> </a>
127 <ul><li><?php __('Recommended Software Books'); ?></li></ul></li>
128 <li><a href="http://www.cafepress.com/cakefoundation"><?php __('CakeSchwag'); ?> </a>
129 <ul><li><?php __('Get your own CakePHP gear - Doughnate to Cake'); ?></li></ul></li>
130 <li><a href="http://www.cakephp.org"><?php __('CakePHP'); ?> </a>
131 <ul><li><?php __('The Rapid Development Framework'); ?></li></ul></li>
132 <li><a href="http://manual.cakephp.org"><?php __('CakePHP Manual'); ?> </a>
133 <ul><li><?php __('Your Rapid Development Cookbook'); ?></li></ul></li>
134 <li><a href="http://api.cakephp.org"><?php __('CakePHP API'); ?> </a>
135 <ul><li><?php __('Docblock Your Best Friend'); ?></li></ul></li>
136 <li><a href="http://www.cakeforge.org"><?php __('CakeForge'); ?> </a>
137 <ul><li><?php __('Open Development for CakePHP'); ?></li></ul></li>
138 <li><a href="https://trac.cakephp.org/"><?php __('CakePHP Trac'); ?> </a>
139 <ul><li><?php __('For the Development of CakePHP (Tickets, SVN browser, Roadmap, Changelogs)'); ?></li></ul></li>
140 <li><a href="http://groups-beta.google.com/group/cake-php"><?php __('CakePHP Google Group'); ?> </a>
141 <ul><li><?php __('Community mailing list'); ?></li></ul></li>
142 <li><a href="irc://irc.freenode.net/cakephp">irc.freenode.net #cakephp</a>
143 <ul><li><?php __('Live chat about CakePHP'); ?></li></ul></li>
144 </ul>