mirror of
https://github.com/brmlab/brmbiolab_sklad.git
synced 2025-06-10 14:13:59 +02:00
Initial commit
This commit is contained in:
commit
3b93da31de
1004 changed files with 265840 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
<?php $this->extend('parent_element'); ?>
|
||||
Element content.
|
|
@ -0,0 +1,2 @@
|
|||
<?php $this->extend('noneexistent_parent_element'); ?>
|
||||
Element content.
|
3
lib/Cake/Test/test_app/View/Elements/html_call.ctp
Normal file
3
lib/Cake/Test/test_app/View/Elements/html_call.ctp
Normal file
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
echo $this->Html->link('Test', 'http://example.com');
|
||||
?>
|
|
@ -0,0 +1,5 @@
|
|||
<h2>Cache Me</h2>
|
||||
<!--nocache-->
|
||||
<p>F. In Element With No Cache Tags</p>
|
||||
<?php $this->log('6. in element with no cache tags') ?>
|
||||
<!--/nocache-->
|
4
lib/Cake/Test/test_app/View/Elements/nocache/plain.ctp
Normal file
4
lib/Cake/Test/test_app/View/Elements/nocache/plain.ctp
Normal file
|
@ -0,0 +1,4 @@
|
|||
<h2>Cache Me</h2>
|
||||
<p>B. In Plain Element</p>
|
||||
<?php $this->log('2. in plain element') ?>
|
||||
|
8
lib/Cake/Test/test_app/View/Elements/nocache/sub1.ctp
Normal file
8
lib/Cake/Test/test_app/View/Elements/nocache/sub1.ctp
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?php echo $this->element('nocache/sub2'); ?>
|
||||
|
||||
<!--nocache-->
|
||||
<?php $foobar = 'in sub1'; ?>
|
||||
<?php echo $foobar; ?>
|
||||
<!--/nocache-->
|
||||
|
||||
<?php echo 'printing: "' . $foobar . '"'; ?>
|
6
lib/Cake/Test/test_app/View/Elements/nocache/sub2.ctp
Normal file
6
lib/Cake/Test/test_app/View/Elements/nocache/sub2.ctp
Normal file
|
@ -0,0 +1,6 @@
|
|||
<!--nocache-->
|
||||
<?php $barfoo = 'in sub2'; ?>
|
||||
<?php echo $barfoo; ?>
|
||||
<!--/nocache-->
|
||||
|
||||
<?php echo 'printing: "' . $barfoo . '"'; ?>
|
2
lib/Cake/Test/test_app/View/Elements/parent_element.ctp
Normal file
2
lib/Cake/Test/test_app/View/Elements/parent_element.ctp
Normal file
|
@ -0,0 +1,2 @@
|
|||
Parent Element.
|
||||
<?php echo $this->fetch('content'); ?>
|
5
lib/Cake/Test/test_app/View/Elements/session_helper.ctp
Normal file
5
lib/Cake/Test/test_app/View/Elements/session_helper.ctp
Normal file
|
@ -0,0 +1,5 @@
|
|||
<div id="notificationLayout">
|
||||
<h1><?php echo $name; ?></h1>
|
||||
<h3><?php echo $title; ?></h3>
|
||||
<p><?php echo $message; ?></p>
|
||||
</div>
|
1
lib/Cake/Test/test_app/View/Elements/test_element.ctp
Normal file
1
lib/Cake/Test/test_app/View/Elements/test_element.ctp
Normal file
|
@ -0,0 +1 @@
|
|||
<?php echo 'this is the test element'; ?>
|
1
lib/Cake/Test/test_app/View/Elements/test_element.xml
Normal file
1
lib/Cake/Test/test_app/View/Elements/test_element.xml
Normal file
|
@ -0,0 +1 @@
|
|||
<p>test element</p>
|
1
lib/Cake/Test/test_app/View/Elements/type_check.ctp
Normal file
1
lib/Cake/Test/test_app/View/Elements/type_check.ctp
Normal file
|
@ -0,0 +1 @@
|
|||
<?php echo gettype($form); ?>
|
1
lib/Cake/Test/test_app/View/Emails/html/custom.ctp
Normal file
1
lib/Cake/Test/test_app/View/Emails/html/custom.ctp
Normal file
|
@ -0,0 +1 @@
|
|||
<p>Here is your value: <b><?php echo $value; ?></b></p>
|
7
lib/Cake/Test/test_app/View/Emails/html/default.ctp
Normal file
7
lib/Cake/Test/test_app/View/Emails/html/default.ctp
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
$content = explode("\n", $content);
|
||||
|
||||
foreach ($content as $line):
|
||||
echo '<p> ' . $line . '</p>';
|
||||
endforeach;
|
||||
?>
|
12
lib/Cake/Test/test_app/View/Emails/html/html.ctp
Normal file
12
lib/Cake/Test/test_app/View/Emails/html/html.ctp
Normal file
|
@ -0,0 +1,12 @@
|
|||
<h1>HTML Ipsum Presents</h1><p><strong>Pellentesque habitant morbi tristique</strong> senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. <em>Aenean ultricies mi vitae est.</em> Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, <code>commodo vitae</code>, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. <a href="#">Donec non enim</a> in turpis pulvinar facilisis. Ut felis.</p><h2>Header Level 2</h2><ol><li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li><li>Aliquam tincidunt mauris eu risus.</li></ol><blockquote><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue. Ut a est eget ligula molestie gravida. Curabitur massa. Donec eleifend, libero at sagittis mollis, tellus est malesuada tellus, at luctus turpis elit sit amet quam. Vivamus pretium ornare est.</p></blockquote><h3>Header Level 3</h3><ul><li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li><li>Aliquam tincidunt mauris eu risus.</li></ul>
|
||||
<pre><code>
|
||||
#header h1 a {
|
||||
display: block;
|
||||
width: 300px;
|
||||
height: 80px;
|
||||
}</code></pre>
|
||||
<table>
|
||||
<th align="right" valign="top"
|
||||
style="font-weight: bold">The tag is across multiple lines - <?php echo str_repeat('x', CakeEmail::LINE_LENGTH_MUST); ?></th>
|
||||
</table>
|
||||
<p>Some more <?php echo str_repeat('x', CakeEmail::LINE_LENGTH_MUST); ?> <b>Bold</b> test.</p>
|
8
lib/Cake/Test/test_app/View/Emails/html/image.ctp
Normal file
8
lib/Cake/Test/test_app/View/Emails/html/image.ctp
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
echo $this->Html->image('image.gif', array(
|
||||
'alt' => 'cool image',
|
||||
'width' => 100,
|
||||
'height' => 100,
|
||||
'fullBase' => true,
|
||||
));
|
1
lib/Cake/Test/test_app/View/Emails/html/japanese.ctp
Normal file
1
lib/Cake/Test/test_app/View/Emails/html/japanese.ctp
Normal file
|
@ -0,0 +1 @@
|
|||
<p>ここにあなたの設定した値が入ります: <b><?php echo $value; ?></b></p>
|
|
@ -0,0 +1,3 @@
|
|||
Before the element.
|
||||
<?php echo $this->element('html_call'); ?>
|
||||
After the element.
|
1
lib/Cake/Test/test_app/View/Emails/text/custom.ctp
Normal file
1
lib/Cake/Test/test_app/View/Emails/text/custom.ctp
Normal file
|
@ -0,0 +1 @@
|
|||
Here is your value: <?php echo $value; ?>
|
|
@ -0,0 +1 @@
|
|||
Right now: <?php echo $this->Time->toAtom($time); ?>
|
1
lib/Cake/Test/test_app/View/Emails/text/default.ctp
Normal file
1
lib/Cake/Test/test_app/View/Emails/text/default.ctp
Normal file
|
@ -0,0 +1 @@
|
|||
<?php echo $content; ?>
|
1
lib/Cake/Test/test_app/View/Emails/text/japanese.ctp
Normal file
1
lib/Cake/Test/test_app/View/Emails/text/japanese.ctp
Normal file
|
@ -0,0 +1 @@
|
|||
ここにあなたの設定した値が入ります: <?php echo $value; ?>
|
2
lib/Cake/Test/test_app/View/Emails/text/wide.ctp
Normal file
2
lib/Cake/Test/test_app/View/Emails/text/wide.ctp
Normal file
|
@ -0,0 +1,2 @@
|
|||
This element has some text that is just too wide to comply with email standards.
|
||||
<?php echo $content; ?>
|
13
lib/Cake/Test/test_app/View/Errors/error400.ctp
Normal file
13
lib/Cake/Test/test_app/View/Errors/error400.ctp
Normal file
|
@ -0,0 +1,13 @@
|
|||
<h2><?php echo $message; ?></h2>
|
||||
<p class="error">
|
||||
<strong><?php echo __d('cake', 'Error'); ?>: </strong>
|
||||
<?php printf(
|
||||
__d('cake', 'The requested address %s was not found on this server.'),
|
||||
"<strong>'{$url}'</strong>"
|
||||
); ?>
|
||||
</p>
|
||||
<?php
|
||||
if (Configure::read('debug') > 0):
|
||||
echo $this->element('exception_stack_trace');
|
||||
endif;
|
||||
?>
|
10
lib/Cake/Test/test_app/View/Errors/error500.ctp
Normal file
10
lib/Cake/Test/test_app/View/Errors/error500.ctp
Normal file
|
@ -0,0 +1,10 @@
|
|||
<h2><?php echo $message; ?></h2>
|
||||
<p class="error">
|
||||
<strong><?php echo __d('cake', 'Error'); ?>: </strong>
|
||||
<?php echo __d('cake', 'An Internal Error Has Occurred.'); ?>
|
||||
</p>
|
||||
<?php
|
||||
if (Configure::read('debug') > 0):
|
||||
echo $this->element('exception_stack_trace');
|
||||
endif;
|
||||
?>
|
11
lib/Cake/Test/test_app/View/Helper/BananaHelper.php
Normal file
11
lib/Cake/Test/test_app/View/Helper/BananaHelper.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
App::uses('Helper', 'View');
|
||||
|
||||
class BananaHelper extends Helper {
|
||||
|
||||
public function peel() {
|
||||
return '<b>peeled</b>';
|
||||
}
|
||||
|
||||
}
|
13
lib/Cake/Test/test_app/View/Layouts/Emails/html/default.ctp
Normal file
13
lib/Cake/Test/test_app/View/Layouts/Emails/html/default.ctp
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo $this->fetch('title'); ?></title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<?php echo $this->fetch('content'); ?>
|
||||
|
||||
<p>This email was sent using the <a href="http://cakephp.org">CakePHP Framework</a></p>
|
||||
</body>
|
||||
</html>
|
13
lib/Cake/Test/test_app/View/Layouts/Emails/html/japanese.ctp
Normal file
13
lib/Cake/Test/test_app/View/Layouts/Emails/html/japanese.ctp
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo $this->fetch('title'); ?></title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<?php echo $this->fetch('content'); ?>
|
||||
|
||||
<p>このメールは <a href="http://cakephp.org">CakePHP Framework</a> を利用して送信しました。</p>
|
||||
</body>
|
||||
</html>
|
13
lib/Cake/Test/test_app/View/Layouts/Emails/html/thin.ctp
Normal file
13
lib/Cake/Test/test_app/View/Layouts/Emails/html/thin.ctp
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo $this->fetch('title'); ?></title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<?php echo $this->fetch('content'); ?>
|
||||
|
||||
<p>This email was sent using the CakePHP Framework</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
<?php echo $this->fetch('content'); ?>
|
||||
|
||||
This email was sent using the CakePHP Framework, http://cakephp.org.
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
<?php echo $this->fetch('content'); ?>
|
||||
|
||||
CakePHP Framework を使って送信したメールです。 http://cakephp.org.
|
1
lib/Cake/Test/test_app/View/Layouts/ajax.ctp
Normal file
1
lib/Cake/Test/test_app/View/Layouts/ajax.ctp
Normal file
|
@ -0,0 +1 @@
|
|||
<?php echo $this->fetch('content'); ?>
|
2
lib/Cake/Test/test_app/View/Layouts/ajax2.ctp
Normal file
2
lib/Cake/Test/test_app/View/Layouts/ajax2.ctp
Normal file
|
@ -0,0 +1,2 @@
|
|||
Ajax!
|
||||
<?php echo $this->fetch('content'); ?>
|
5
lib/Cake/Test/test_app/View/Layouts/banana.ctp
Normal file
5
lib/Cake/Test/test_app/View/Layouts/banana.ctp
Normal file
|
@ -0,0 +1,5 @@
|
|||
<body>
|
||||
<?php
|
||||
echo $this->Banana->peel();
|
||||
?>
|
||||
</body>
|
13
lib/Cake/Test/test_app/View/Layouts/cache_empty_sections.ctp
Normal file
13
lib/Cake/Test/test_app/View/Layouts/cache_empty_sections.ctp
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title><?php echo $this->fetch('title'); ?></title>
|
||||
<!--nocache--><?php $x = 1; ?><!--/nocache-->
|
||||
</head>
|
||||
<body>
|
||||
<!--nocache--><?php $x++; ?><!--/nocache-->
|
||||
<!--nocache--><?php $x++; ?><!--/nocache-->
|
||||
<?php echo $this->fetch('content'); ?>
|
||||
<!--nocache--><?php echo 'cached count is: ' . $x; ?><!--/nocache-->
|
||||
</body>
|
||||
</html>
|
13
lib/Cake/Test/test_app/View/Layouts/cache_layout.ctp
Normal file
13
lib/Cake/Test/test_app/View/Layouts/cache_layout.ctp
Normal file
|
@ -0,0 +1,13 @@
|
|||
<p>This is regular text</p>
|
||||
<!--nocache-->
|
||||
<?php echo microtime(); ?>
|
||||
<!--/nocache-->
|
||||
|
||||
<?php echo $this->fetch('content'); ?>
|
||||
|
||||
<?php echo $superman; ?>
|
||||
|
||||
<!--nocache-->
|
||||
<?php echo $variable; ?>
|
||||
<!--/nocache-->
|
||||
<p>Additional regular text.</p>
|
43
lib/Cake/Test/test_app/View/Layouts/default.ctp
Normal file
43
lib/Cake/Test/test_app/View/Layouts/default.ctp
Normal file
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
|
||||
$this->loadHelper('Html');
|
||||
|
||||
$cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework');
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<?php echo $this->Html->charset(); ?>
|
||||
<title>
|
||||
<?php echo $cakeDescription ?>:
|
||||
<?php echo $this->fetch('title'); ?>
|
||||
</title>
|
||||
<?php
|
||||
echo $this->Html->meta('icon');
|
||||
|
||||
echo $this->Html->css('cake.generic');
|
||||
|
||||
echo $scripts_for_layout;
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<div id="header">
|
||||
<h1><?php echo $this->Html->link($cakeDescription, 'http://cakephp.org'); ?></h1>
|
||||
</div>
|
||||
<div id="content">
|
||||
|
||||
<?php echo $this->fetch('content'); ?>
|
||||
|
||||
</div>
|
||||
<div id="footer">
|
||||
<?php echo $this->Html->link(
|
||||
$this->Html->image('cake.power.gif', array('alt' => $cakeDescription, 'border' => '0')),
|
||||
'http://www.cakephp.org/',
|
||||
array('target' => '_blank', 'escape' => false)
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
19
lib/Cake/Test/test_app/View/Layouts/flash.ctp
Normal file
19
lib/Cake/Test/test_app/View/Layouts/flash.ctp
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title><?php echo $page_title?></title>
|
||||
<?php echo $this->Html->charset(); ?>
|
||||
|
||||
<?php if (!Configure::read('debug')) { ?>
|
||||
<meta http-equiv="Refresh" content="<?php echo $pause?>;url=<?php echo $url?>"/>
|
||||
<?php } ?>
|
||||
<style><!--
|
||||
P { text-align:center; font:bold 1.1em sans-serif }
|
||||
A { color:#444; text-decoration:none }
|
||||
A:HOVER { text-decoration: underline; color:#44E }
|
||||
--></style>
|
||||
</head>
|
||||
<body>
|
||||
<p><a href="<?php echo $url?>"><?php echo $message?></a></p>
|
||||
</body>
|
||||
</html>
|
2
lib/Cake/Test/test_app/View/Layouts/js/default.ctp
Normal file
2
lib/Cake/Test/test_app/View/Layouts/js/default.ctp
Normal file
|
@ -0,0 +1,2 @@
|
|||
<?php echo $scripts_for_layout; ?>
|
||||
<script type="text/javascript"><?php echo $this->fetch('content'); ?></script>
|
1
lib/Cake/Test/test_app/View/Layouts/json/default.ctp
Normal file
1
lib/Cake/Test/test_app/View/Layouts/json/default.ctp
Normal file
|
@ -0,0 +1 @@
|
|||
<?php echo $this->fetch('content'); ?>
|
21
lib/Cake/Test/test_app/View/Layouts/multi_cache.ctp
Normal file
21
lib/Cake/Test/test_app/View/Layouts/multi_cache.ctp
Normal file
|
@ -0,0 +1,21 @@
|
|||
<p>This is regular text</p>
|
||||
<!--nocache-->
|
||||
<p>A. Layout Before Content</p>
|
||||
<?php $this->log('1. layout before content') ?>
|
||||
<!--/nocache-->
|
||||
<!--nocache--><?php echo $this->element('nocache/plain'); ?><!--/nocache-->
|
||||
<!--nocache-->
|
||||
<p>C. Layout After Test Element But Before Content</p>
|
||||
<?php $this->log('3. layout after test element but before content') ?>
|
||||
<!--/nocache-->
|
||||
<?php echo $this->fetch('content'); ?>
|
||||
<!--nocache-->
|
||||
<p>E. Layout After Content</p>
|
||||
<?php $this->log('5. layout after content') ?>
|
||||
<!--/nocache-->
|
||||
<p>Additional regular text.</p>
|
||||
<?php echo $this->element('nocache/contains_nocache'); ?>
|
||||
<!--nocache-->
|
||||
<p>G. Layout After Content And After Element With No Cache Tags</p>
|
||||
<?php $this->log('7. layout after content and after element with no cache tags') ?>
|
||||
<!--/nocache-->
|
17
lib/Cake/Test/test_app/View/Layouts/rss/default.ctp
Normal file
17
lib/Cake/Test/test_app/View/Layouts/rss/default.ctp
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
echo $this->Rss->header();
|
||||
|
||||
if (!isset($channel)) {
|
||||
$channel = array();
|
||||
}
|
||||
if (!isset($channel['title'])) {
|
||||
$channel['title'] = $this->fetch('title');
|
||||
}
|
||||
|
||||
echo $this->Rss->document(
|
||||
$this->Rss->channel(
|
||||
array(), $channel, $this->fetch('content')
|
||||
)
|
||||
);
|
||||
|
||||
?>
|
2
lib/Cake/Test/test_app/View/Layouts/xml/default.ctp
Normal file
2
lib/Cake/Test/test_app/View/Layouts/xml/default.ctp
Normal file
|
@ -0,0 +1,2 @@
|
|||
<?php echo '<?xml version="1.0" encoding="' . Configure::read('App.encoding') . '"?>'; ?>
|
||||
<?php echo $this->fetch('content'); ?>
|
31
lib/Cake/Test/test_app/View/Pages/extract.ctp
Normal file
31
lib/Cake/Test/test_app/View/Pages/extract.ctp
Normal file
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
$count = 10;
|
||||
$messages = array('count' => 10);
|
||||
|
||||
// Plural
|
||||
echo __n('You have %d new message.', 'You have %d new messages.', $count);
|
||||
echo __n('You deleted %d message.', 'You deleted %d messages.', $messages['count']);
|
||||
|
||||
// Domain Plural
|
||||
echo __dn('domain', 'You have %d new message (domain).', 'You have %d new messages (domain).', '10');
|
||||
echo __dn('domain', 'You deleted %d message (domain).', 'You deleted %d messages (domain).', $messages['count']);
|
||||
|
||||
// Duplicated Message
|
||||
echo __('Editing this Page');
|
||||
echo __('You have %d new message.');
|
||||
|
||||
// Contains quotes
|
||||
echo __('double "quoted"');
|
||||
echo __("single 'quoted'");
|
||||
|
||||
// Multiline
|
||||
__('Hot features!'
|
||||
. "\n - No Configuration:"
|
||||
. ' Set-up the database and let the magic begin'
|
||||
. "\n - Extremely Simple:"
|
||||
. ' Just look at the name...It\'s Cake'
|
||||
. "\n - Active, Friendly Community:"
|
||||
. ' Join us #cakephp on IRC. We\'d love to help you get started');
|
||||
|
||||
// Category
|
||||
echo __c('You have a new message (category: LC_TIME).', 5);
|
72
lib/Cake/Test/test_app/View/Pages/home.ctp
Normal file
72
lib/Cake/Test/test_app/View/Pages/home.ctp
Normal file
|
@ -0,0 +1,72 @@
|
|||
<p>
|
||||
<?php
|
||||
if (is_writable(TMP)):
|
||||
echo '<span class="notice success">';
|
||||
echo __d('cake_dev', 'Your tmp directory is writable.');
|
||||
echo '</span>';
|
||||
else:
|
||||
echo '<span class="notice">';
|
||||
echo __d('cake_dev', 'Your tmp directory is NOT writable.');
|
||||
echo '</span>';
|
||||
endif;
|
||||
?>
|
||||
</p>
|
||||
<p>
|
||||
<?php
|
||||
$settings = Cache::settings();
|
||||
if (!empty($settings)):
|
||||
echo '<span class="notice success">';
|
||||
echo __d('cake_dev', 'The %s is being used for caching. To change the config edit APP/config/core.php ', '<em>'. $settings['engine'] . 'Engine</em>');
|
||||
echo '</span>';
|
||||
else:
|
||||
echo '<span class="notice">';
|
||||
echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in APP/config/core.php');
|
||||
echo '</span>';
|
||||
endif;
|
||||
?>
|
||||
</p>
|
||||
<p>
|
||||
<?php
|
||||
$filePresent = null;
|
||||
if (file_exists(APP . 'Config' . DS . 'database.php')):
|
||||
echo '<span class="notice success">';
|
||||
echo __d('cake_dev', 'Your database configuration file is present.');
|
||||
$filePresent = true;
|
||||
echo '</span>';
|
||||
else:
|
||||
echo '<span class="notice">';
|
||||
echo __d('cake_dev', 'Your database configuration file is NOT present.');
|
||||
echo '<br/>';
|
||||
echo __d('cake_dev', 'Rename config/database.php.default to config/database.php');
|
||||
echo '</span>';
|
||||
endif;
|
||||
?>
|
||||
</p>
|
||||
<?php
|
||||
if (isset($filePresent)):
|
||||
App::uses('ConnectionManager', 'Model');
|
||||
try {
|
||||
$connected = ConnectionManager::getDataSource('default');
|
||||
} catch (Exception $e) {
|
||||
$connected = false;
|
||||
}
|
||||
?>
|
||||
<p>
|
||||
<?php
|
||||
if ($connected && $connected->isConnected()):
|
||||
echo '<span class="notice success">';
|
||||
echo __d('cake_dev', 'Cake is able to connect to the database.');
|
||||
echo '</span>';
|
||||
else:
|
||||
echo '<span class="notice">';
|
||||
echo __d('cake_dev', 'Cake is NOT able to connect to the database.');
|
||||
echo '</span>';
|
||||
endif;
|
||||
?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<h3><?php echo __d('cake_dev', 'Editing this Page'); ?></h3>
|
||||
<?php
|
||||
echo __d('cake_dev', 'To change the content of this page, create: APP/views/pages/home.ctp.<br />
|
||||
To change its layout, create: APP/views/layouts/default.ctp.<br />
|
||||
You can also add some CSS styles for your pages at: APP/webroot/css.');
|
2
lib/Cake/Test/test_app/View/Pages/page.home.ctp
Normal file
2
lib/Cake/Test/test_app/View/Pages/page.home.ctp
Normal file
|
@ -0,0 +1,2 @@
|
|||
Empty page with a dot in the filename.
|
||||
Used to test plugin.view and missing plugins.
|
1
lib/Cake/Test/test_app/View/Posts/alt_ext.alt
Normal file
1
lib/Cake/Test/test_app/View/Posts/alt_ext.alt
Normal file
|
@ -0,0 +1 @@
|
|||
alt ext
|
|
@ -0,0 +1,2 @@
|
|||
View Content
|
||||
<!--nocache--><?php $y = 1; ?><!--/nocache-->
|
14
lib/Cake/Test/test_app/View/Posts/cache_form.ctp
Normal file
14
lib/Cake/Test/test_app/View/Posts/cache_form.ctp
Normal file
|
@ -0,0 +1,14 @@
|
|||
<div class="users form">
|
||||
<!--nocache-->
|
||||
<?php echo $this->Form->create('User'); ?>
|
||||
<fieldset>
|
||||
<legend><?php echo __('Add User'); ?></legend>
|
||||
<?php
|
||||
echo $this->Form->input('username');
|
||||
echo $this->Form->input('email');
|
||||
echo $this->Form->input('password');
|
||||
?>
|
||||
</fieldset>
|
||||
<?php echo $this->Form->end('Submit'); ?>
|
||||
<!--/nocache-->
|
||||
</div>
|
3
lib/Cake/Test/test_app/View/Posts/extend_element.ctp
Normal file
3
lib/Cake/Test/test_app/View/Posts/extend_element.ctp
Normal file
|
@ -0,0 +1,3 @@
|
|||
<?php $this->extend('parent_view'); ?>
|
||||
View content.
|
||||
<?php echo $this->element('extended_element'); ?>
|
2
lib/Cake/Test/test_app/View/Posts/extend_loop.ctp
Normal file
2
lib/Cake/Test/test_app/View/Posts/extend_loop.ctp
Normal file
|
@ -0,0 +1,2 @@
|
|||
<?php $this->extend('extend_loop_inner'); ?>
|
||||
Outer element.
|
2
lib/Cake/Test/test_app/View/Posts/extend_loop_inner.ctp
Normal file
2
lib/Cake/Test/test_app/View/Posts/extend_loop_inner.ctp
Normal file
|
@ -0,0 +1,2 @@
|
|||
<?php $this->extend('extend_loop'); ?>
|
||||
Inner loop element.
|
|
@ -0,0 +1 @@
|
|||
<?php echo $this->element('extended_missing_element'); ?>
|
2
lib/Cake/Test/test_app/View/Posts/extend_self.ctp
Normal file
2
lib/Cake/Test/test_app/View/Posts/extend_self.ctp
Normal file
|
@ -0,0 +1,2 @@
|
|||
<?php $this->extend('extend_self'); ?>
|
||||
To infinifty and beyond.
|
|
@ -0,0 +1,3 @@
|
|||
<?php echo $this->element('test_element'); ?>
|
||||
<?php $this->extend('parent_view'); ?>
|
||||
The view
|
4
lib/Cake/Test/test_app/View/Posts/helper_overwrite.ctp
Normal file
4
lib/Cake/Test/test_app/View/Posts/helper_overwrite.ctp
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?php
|
||||
echo $html;
|
||||
echo $this->Html->link('Test link', '#');
|
||||
?>
|
1
lib/Cake/Test/test_app/View/Posts/index.ctp
Normal file
1
lib/Cake/Test/test_app/View/Posts/index.ctp
Normal file
|
@ -0,0 +1 @@
|
|||
posts index
|
14
lib/Cake/Test/test_app/View/Posts/json/index.ctp
Normal file
14
lib/Cake/Test/test_app/View/Posts/json/index.ctp
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
$paging = isset($this->Paginator->options['url']) ? $this->Paginator->options['url'] : null;
|
||||
|
||||
$formatted = array(
|
||||
'user' => $user['User']['username'],
|
||||
'list' => array(),
|
||||
'paging' => $paging,
|
||||
);
|
||||
foreach ($user['Item'] as $item) {
|
||||
$formatted['list'][] = $item['name'];
|
||||
}
|
||||
|
||||
echo json_encode($formatted);
|
15
lib/Cake/Test/test_app/View/Posts/multiple_nocache.ctp
Normal file
15
lib/Cake/Test/test_app/View/Posts/multiple_nocache.ctp
Normal file
|
@ -0,0 +1,15 @@
|
|||
--view start--
|
||||
<!--nocache-->
|
||||
<?php echo $batman ?>
|
||||
<!--/nocache-->
|
||||
|
||||
this view has 3 nocache blocks
|
||||
|
||||
<!--nocache-->
|
||||
<?php echo $spiderman; ?>
|
||||
<!--/nocache-->
|
||||
|
||||
<!--nocache-->
|
||||
<?php echo 'some string'; ?>
|
||||
<!--/nocache-->
|
||||
--view end--
|
5
lib/Cake/Test/test_app/View/Posts/nested_extends.ctp
Normal file
5
lib/Cake/Test/test_app/View/Posts/nested_extends.ctp
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?php
|
||||
$this->extend('parent_1');
|
||||
$this->assign('sidebar', 'Sidebar Content.');
|
||||
?>
|
||||
This is the first template.
|
|
@ -0,0 +1,9 @@
|
|||
<!--nocache-->
|
||||
<?php echo $foo; ?>
|
||||
<!--/nocache-->
|
||||
|
||||
<!--nocache-->
|
||||
<?php echo $bar; ?>
|
||||
<!--/nocache-->
|
||||
|
||||
<?php echo $this->element('nocache/sub1'); ?>
|
3
lib/Cake/Test/test_app/View/Posts/open_block.ctp
Normal file
3
lib/Cake/Test/test_app/View/Posts/open_block.ctp
Normal file
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
$this->start('no_close');
|
||||
echo 'This block has no close :(';
|
5
lib/Cake/Test/test_app/View/Posts/parent_1.ctp
Normal file
5
lib/Cake/Test/test_app/View/Posts/parent_1.ctp
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?php
|
||||
$this->extend('parent_2');
|
||||
?>
|
||||
This is the first parent.
|
||||
<?php echo $this->fetch('content'); ?>
|
3
lib/Cake/Test/test_app/View/Posts/parent_2.ctp
Normal file
3
lib/Cake/Test/test_app/View/Posts/parent_2.ctp
Normal file
|
@ -0,0 +1,3 @@
|
|||
This is the second parent.
|
||||
<?php echo $this->fetch('content'); ?>
|
||||
<?php echo $this->fetch('sidebar'); ?>
|
2
lib/Cake/Test/test_app/View/Posts/parent_view.ctp
Normal file
2
lib/Cake/Test/test_app/View/Posts/parent_view.ctp
Normal file
|
@ -0,0 +1,2 @@
|
|||
Parent View.
|
||||
<?php echo $this->fetch('content') ?>
|
1
lib/Cake/Test/test_app/View/Posts/scaffold.form.ctp
Normal file
1
lib/Cake/Test/test_app/View/Posts/scaffold.form.ctp
Normal file
|
@ -0,0 +1 @@
|
|||
test_app posts add/edit scaffold view
|
5
lib/Cake/Test/test_app/View/Posts/sequencial_nocache.ctp
Normal file
5
lib/Cake/Test/test_app/View/Posts/sequencial_nocache.ctp
Normal file
|
@ -0,0 +1,5 @@
|
|||
<h1>Content</h1>
|
||||
<!--nocache-->
|
||||
<p>D. In View File</p>
|
||||
<?php $this->log('4. in view file') ?>
|
||||
<!--/nocache-->
|
124
lib/Cake/Test/test_app/View/Posts/test_nocache_tags.ctp
Normal file
124
lib/Cake/Test/test_app/View/Posts/test_nocache_tags.ctp
Normal file
|
@ -0,0 +1,124 @@
|
|||
<p>
|
||||
<!--nocache-->
|
||||
<span class="notice">
|
||||
<?php
|
||||
echo __d('cake', 'Your tmp directory is ');
|
||||
if (is_writable(TMP)):
|
||||
echo __d('cake', 'writable.');
|
||||
else:
|
||||
echo __d('cake', 'NOT writable.');
|
||||
endif;
|
||||
?>
|
||||
</span>
|
||||
<!--/nocache-->
|
||||
</p>
|
||||
<p>
|
||||
<span class="notice">
|
||||
<?php
|
||||
echo __d('cake', 'Your cache is ');
|
||||
if (Cache::isInitialized('default')):
|
||||
echo __d('cake', 'set up and initialized properly.');
|
||||
$settings = Cache::settings();
|
||||
echo '<p>' . $settings['engine'];
|
||||
echo __d('cake', ' is being used to cache, to change this edit config/core.php ');
|
||||
echo '</p>';
|
||||
|
||||
echo 'Settings: <ul>';
|
||||
foreach ($settings as $name => $value):
|
||||
if (is_array($value)):
|
||||
$value = join(',', $value);
|
||||
endif;
|
||||
echo '<li>' . $name . ': ' . $value . '</li>';
|
||||
endforeach;
|
||||
echo '</ul>';
|
||||
|
||||
else:
|
||||
echo __d('cake', 'NOT working.');
|
||||
echo '<br />';
|
||||
if (is_writable(TMP)):
|
||||
echo __d('cake', 'Edit: config/core.php to insure you have the newset version of this file and the variable $cakeCache set properly');
|
||||
endif;
|
||||
endif;
|
||||
?>
|
||||
</span>
|
||||
</p>
|
||||
<p>
|
||||
<span class="notice">
|
||||
<?php
|
||||
echo __d('cake', 'Your database configuration file is ');
|
||||
$filePresent = null;
|
||||
if (file_exists(APP . 'Config'.'database.php')):
|
||||
echo __d('cake', 'present.');
|
||||
$filePresent = true;
|
||||
else:
|
||||
echo __d('cake', 'NOT present.');
|
||||
echo '<br/>';
|
||||
echo __d('cake', 'Rename config/database.php.default to config/database.php');
|
||||
endif;
|
||||
?>
|
||||
</span>
|
||||
</p>
|
||||
<?php
|
||||
if (!empty($filePresent)):
|
||||
App::uses('ConnectionManager', 'Model');
|
||||
$connected = ConnectionManager::getDataSource('default');
|
||||
?>
|
||||
<p>
|
||||
<span class="notice">
|
||||
<?php echo __d('cake', 'Cake');
|
||||
if ($connected->isConnected()):
|
||||
__d('cake', ' is able to ');
|
||||
else:
|
||||
__d('cake', ' is NOT able to ');
|
||||
endif;
|
||||
__d('cake', 'connect to the database.');
|
||||
?>
|
||||
</span>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<h2><?php echo __d('cake', 'Release Notes for CakePHP %s.', Configure::version()); ?></h2>
|
||||
<a href="https://trac.cakephp.org/wiki/notes/1.2.x.x"><?php echo __d('cake', 'Read the release notes and get the latest version'); ?> </a>
|
||||
<h2><?php echo __d('cake', 'Editing this Page'); ?></h2>
|
||||
<p>
|
||||
<?php echo __d('cake', 'To change the content of this page, create: /app/View/Pages/home.ctp.'); ?><br />
|
||||
<?php echo __d('cake', 'To change its layout, create: /app/View/Layouts/default.ctp.'); ?><br />
|
||||
<a href="http://manual.cakephp.org/"><?php echo __d('cake', 'See the views section of the manual for more info.'); ?> </a><br />
|
||||
<?php echo __d('cake', 'You can also add some CSS styles for your pages at: app/webroot/css/.'); ?>
|
||||
</p>
|
||||
<h2><?php echo __d('cake', 'Getting Started'); ?></h2>
|
||||
<p>
|
||||
<a href="http://manual.cakephp.org/appendix/blog_tutorial"><?php echo __d('cake', 'The 15 min Blog Tutorial'); ?></a><br />
|
||||
<a href="http://www-128.ibm.com/developerworks/edu/os-dw-os-php-cake1.html"><?php echo __d('cake', 'Cook up Web sites fast with CakePHP'); ?></a><br />
|
||||
<a href="http://www-128.ibm.com/developerworks/edu/os-dw-os-php-wiki1.html"><?php echo __d('cake', 'Create an interactive production wiki using PHP'); ?></a>
|
||||
</p>
|
||||
<h2><?php echo __d('cake', 'More about CakePHP'); ?></h2>
|
||||
<p>
|
||||
<?php echo __d('cake', 'CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Active Record, Association Data Mapping, Front Controller and MVC.'); ?>
|
||||
</p>
|
||||
<p>
|
||||
<?php echo __d('cake', '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>
|
||||
<ul>
|
||||
<li><a href="http://cakefoundation.org/"><?php echo __d('cake', 'Cake Software Foundation'); ?> </a>
|
||||
<ul><li><?php echo __d('cake', 'Promoting development related to CakePHP'); ?></li></ul></li>
|
||||
<li><a href="http://bakery.cakephp.org"><?php echo __d('cake', 'The Bakery'); ?> </a>
|
||||
<ul><li><?php echo __d('cake', 'Everything CakePHP'); ?></li></ul></li>
|
||||
<li><a href="http://astore.amazon.com/cakesoftwaref-20/"><?php echo __d('cake', 'Book Store'); ?> </a>
|
||||
<ul><li><?php echo __d('cake', 'Recommended Software Books'); ?></li></ul></li>
|
||||
<li><a href="http://www.cafepress.com/cakefoundation"><?php echo __d('cake', 'CakeSchwag'); ?> </a>
|
||||
<ul><li><?php echo __d('cake', 'Get your own CakePHP gear - Doughnate to Cake'); ?></li></ul></li>
|
||||
<li><a href="http://www.cakephp.org"><?php echo __d('cake', 'CakePHP'); ?> </a>
|
||||
<ul><li><?php echo __d('cake', 'The Rapid Development Framework'); ?></li></ul></li>
|
||||
<li><a href="http://manual.cakephp.org"><?php echo __d('cake', 'CakePHP Manual'); ?> </a>
|
||||
<ul><li><?php echo __d('cake', 'Your Rapid Development Cookbook'); ?></li></ul></li>
|
||||
<li><a href="http://api.cakephp.org"><?php echo __d('cake', 'CakePHP API'); ?> </a>
|
||||
<ul><li><?php echo __d('cake', 'Docblock Your Best Friend'); ?></li></ul></li>
|
||||
<li><a href="http://www.cakeforge.org"><?php echo __d('cake', 'CakeForge'); ?> </a>
|
||||
<ul><li><?php echo __d('cake', 'Open Development for CakePHP'); ?></li></ul></li>
|
||||
<li><a href="https://trac.cakephp.org/"><?php echo __d('cake', 'CakePHP Trac'); ?> </a>
|
||||
<ul><li><?php echo __d('cake', 'For the Development of CakePHP (Tickets, SVN browser, Roadmap, Changelogs)'); ?></li></ul></li>
|
||||
<li><a href="http://groups-beta.google.com/group/cake-php"><?php echo __d('cake', 'CakePHP Google Group'); ?> </a>
|
||||
<ul><li><?php echo __d('cake', 'Community mailing list'); ?></li></ul></li>
|
||||
<li><a href="irc://irc.freenode.net/cakephp">irc.freenode.net #cakephp</a>
|
||||
<ul><li><?php echo __d('cake', 'Live chat about CakePHP'); ?></li></ul></li>
|
||||
</ul>
|
6
lib/Cake/Test/test_app/View/Posts/xml/index.ctp
Normal file
6
lib/Cake/Test/test_app/View/Posts/xml/index.ctp
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
$data = array('users' => array('user' => array()));
|
||||
foreach ($users as $user) {
|
||||
$data['users']['user'][] = array('@' => $user['User']['username']);
|
||||
}
|
||||
echo Xml::fromArray($data)->saveXml();
|
0
lib/Cake/Test/test_app/View/Scaffolds/empty
Normal file
0
lib/Cake/Test/test_app/View/Scaffolds/empty
Normal file
1
lib/Cake/Test/test_app/View/TestsApps/index.ctp
Normal file
1
lib/Cake/Test/test_app/View/TestsApps/index.ctp
Normal file
|
@ -0,0 +1 @@
|
|||
This is the TestsAppsController index view <?php echo isset($var) ? $var : ''; ?>
|
1
lib/Cake/Test/test_app/View/TestsApps/json/index.ctp
Normal file
1
lib/Cake/Test/test_app/View/TestsApps/json/index.ctp
Normal file
|
@ -0,0 +1 @@
|
|||
{"cakephp":"cool"}
|
|
@ -0,0 +1 @@
|
|||
Hi, I'm the test element.
|
|
@ -0,0 +1,2 @@
|
|||
In TestTheme
|
||||
<?php echo $this->Html->image('test.jpg') ?>
|
|
@ -0,0 +1,2 @@
|
|||
default test_theme layout
|
||||
<?php echo $this->fetch('content') ?>
|
|
@ -0,0 +1 @@
|
|||
Into TestPlugin. (themed)
|
|
@ -0,0 +1 @@
|
|||
test_plugin test_plugin_theme default layout
|
|
@ -0,0 +1 @@
|
|||
test plugin index theme view
|
|
@ -0,0 +1 @@
|
|||
posts index themed view
|
|
@ -0,0 +1 @@
|
|||
I'm a themed scaffold file.
|
|
@ -0,0 +1,4 @@
|
|||
posts themed themed file.
|
||||
<!--nocache-->
|
||||
<?php echo $this->element('test_element'); ?>
|
||||
<!--/nocache-->
|
|
@ -0,0 +1 @@
|
|||
/* this is the test asset css file */
|
|
@ -0,0 +1 @@
|
|||
/* theme webroot css file */
|
|
@ -0,0 +1 @@
|
|||
this is just a test to load swf file from the theme.
|
Binary file not shown.
After Width: | Height: | Size: 201 B |
Binary file not shown.
After Width: | Height: | Size: 5.2 KiB |
|
@ -0,0 +1 @@
|
|||
// nested theme js file
|
|
@ -0,0 +1 @@
|
|||
// root theme js file
|
|
@ -0,0 +1 @@
|
|||
this is just a test to load pdf file from the theme.
|
|
@ -0,0 +1 @@
|
|||
This is not an image.
|
Loading…
Add table
Add a link
Reference in a new issue