Update default layouts to use blocks.

This commit is contained in:
mark_story 2011-12-17 21:41:06 -05:00
parent 46bb6c8ad6
commit 0b0a69de1e
3 changed files with 12 additions and 9 deletions

View file

@ -29,7 +29,9 @@
echo $this->Html->css('cake.generic');
echo $scripts_for_layout;
echo $this->fetch('meta');
echo $this->fetch('css');
echo $this->fetch('script');
?>
</head>
<body>
@ -41,8 +43,7 @@
<?php echo $this->Session->flash(); ?>
<?php echo $content_for_layout; ?>
<?php echo $this->fetch('content'); ?>
</div>
<div id="footer">
<?php echo $this->Html->link(

View file

@ -31,7 +31,9 @@ $cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework
echo $this->Html->css('cake.generic');
echo $scripts_for_layout;
echo $this->fetch('meta');
echo $this->fetch('css');
echo $this->fetch('script');
?>
</head>
<body>
@ -43,8 +45,7 @@ $cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework
<?php echo $this->Session->flash(); ?>
<?php echo $content_for_layout; ?>
<?php echo $this->fetch('content'); ?>
</div>
<div id="footer">
<?php echo $this->Html->link(

View file

@ -586,7 +586,8 @@ class View extends Object {
}
/**
* Fetch the content for a block.
* Fetch the content for a block. If a block is
* empty or undefined '' will be returnned.
*
* @param string $name Name of the block
* @return The block content or '' if the block does not exist.