mirror of
https://github.com/brmlab/brmbiolab_sklad.git
synced 2025-06-11 06:33:59 +02:00
Initial commit
This commit is contained in:
commit
3b93da31de
1004 changed files with 265840 additions and 0 deletions
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();
|
Loading…
Add table
Add a link
Reference in a new issue