mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 11:32:40 +00:00
fix renderLayout and update deprecated and outdated code
This commit is contained in:
parent
a980fd92b9
commit
a796b26f13
35 changed files with 42 additions and 59 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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.
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
<?php echo $content_for_layout; ?>
|
||||
<?php echo $this->fetch('content'); ?>
|
||||
|
||||
CakePHP Framework を使って送信したメールです。 http://cakephp.org.
|
|
@ -1 +1 @@
|
|||
<?php echo $content_for_layout; ?>
|
||||
<?php echo $this->fetch('content'); ?>
|
|
@ -1,2 +1,2 @@
|
|||
Ajax!
|
||||
<?php echo $content_for_layout; ?>
|
||||
<?php echo $this->fetch('content'); ?>
|
|
@ -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>
|
|
@ -3,7 +3,7 @@
|
|||
<?php echo microtime(); ?>
|
||||
<!--/nocache-->
|
||||
|
||||
<?php echo $content_for_layout; ?>
|
||||
<?php echo $this->fetch('content'); ?>
|
||||
|
||||
<?php echo $superman; ?>
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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>
|
|
@ -1 +1 @@
|
|||
<?php echo $content_for_layout; ?>
|
||||
<?php echo $this->fetch('content'); ?>
|
|
@ -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') ?>
|
||||
|
|
|
@ -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')
|
||||
)
|
||||
);
|
||||
|
||||
|
|
|
@ -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'); ?>
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
default test_theme layout
|
||||
<?php echo $content_for_layout ?>
|
||||
<?php echo $this->fetch('content') ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue