fix renderLayout and update deprecated and outdated code

This commit is contained in:
euromark 2013-09-13 00:09:31 +02:00
parent a980fd92b9
commit a796b26f13
35 changed files with 42 additions and 59 deletions

View file

@ -6,7 +6,7 @@
</head>
<body>
<?php echo $content_for_layout; ?>
<?php echo $this->fetch('content'); ?>
<p>This email was sent using the <a href="http://cakephp.org">CakePHP Framework</a></p>
</body>

View file

@ -6,7 +6,7 @@
</head>
<body>
<?php echo $content_for_layout; ?>
<?php echo $this->fetch('content'); ?>
<p>このメールは <a href="http://cakephp.org">CakePHP Framework</a> を利用して送信しました。</p>
</body>

View file

@ -6,7 +6,7 @@
</head>
<body>
<?php echo $content_for_layout; ?>
<?php echo $this->fetch('content'); ?>
<p>This email was sent using the CakePHP Framework</p>
</body>

View file

@ -1,4 +1,4 @@
<?php echo $content_for_layout; ?>
<?php echo $this->fetch('content'); ?>
This email was sent using the CakePHP Framework, http://cakephp.org.

View file

@ -1,4 +1,4 @@
<?php echo $content_for_layout; ?>
<?php echo $this->fetch('content'); ?>
CakePHP Framework を使って送信したメールです。 http://cakephp.org.

View file

@ -1 +1 @@
<?php echo $content_for_layout; ?>
<?php echo $this->fetch('content'); ?>

View file

@ -1,2 +1,2 @@
Ajax!
<?php echo $content_for_layout; ?>
<?php echo $this->fetch('content'); ?>

View file

@ -7,7 +7,7 @@
<body>
<!--nocache--><?php $x++; ?><!--/nocache-->
<!--nocache--><?php $x++; ?><!--/nocache-->
<?php echo $content_for_layout; ?>
<?php echo $this->fetch('content'); ?>
<!--nocache--><?php echo 'cached count is: ' . $x; ?><!--/nocache-->
</body>
</html>

View file

@ -3,7 +3,7 @@
<?php echo microtime(); ?>
<!--/nocache-->
<?php echo $content_for_layout; ?>
<?php echo $this->fetch('content'); ?>
<?php echo $superman; ?>

View file

@ -27,7 +27,7 @@ $cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework
</div>
<div id="content">
<?php echo $content_for_layout; ?>
<?php echo $this->fetch('content'); ?>
</div>
<div id="footer">

View file

@ -1,2 +1,2 @@
<?php echo $scripts_for_layout; ?>
<script type="text/javascript"><?php echo $content_for_layout; ?></script>
<script type="text/javascript"><?php echo $this->fetch('content'); ?></script>

View file

@ -1 +1 @@
<?php echo $content_for_layout; ?>
<?php echo $this->fetch('content'); ?>

View file

@ -8,7 +8,7 @@
<p>C. Layout After Test Element But Before Content</p>
<?php $this->log('3. layout after test element but before content') ?>
<!--/nocache-->
<?php echo $content_for_layout; ?>
<?php echo $this->fetch('content'); ?>
<!--nocache-->
<p>E. Layout After Content</p>
<?php $this->log('5. layout after content') ?>

View file

@ -1,5 +1,5 @@
<?php
echo $rss->header();
echo $this->Rss->header();
if (!isset($channel)) {
$channel = array();
@ -8,9 +8,9 @@ if (!isset($channel['title'])) {
$channel['title'] = $title_for_layout;
}
echo $rss->document(
$rss->channel(
array(), $channel, $content_for_layout
echo $this->Rss->document(
$this->Rss->channel(
array(), $channel, $this->fetch('content')
)
);

View file

@ -1,2 +1,2 @@
<?php echo '<?xml version="1.0" encoding="' . Configure::read('App.encoding') . '"?>'; ?>
<?php echo $content_for_layout; ?>
<?php echo $this->fetch('content'); ?>

View file

@ -1,2 +1,2 @@
default test_theme layout
<?php echo $content_for_layout ?>
<?php echo $this->fetch('content') ?>