Permalink
Browse files

changing layout to use view blocks

  • Loading branch information...
rchavik committed Mar 31, 2012
1 parent ea1ed66 commit aadbc17f766cf4659a045a342357e9b157aa2c90
Showing with 18 additions and 6 deletions.
  1. +6 −2 View/Layouts/admin.ctp
  2. +6 −2 View/Layouts/admin_full.ctp
  3. +6 −2 View/Layouts/default.ctp
View
@@ -25,7 +25,8 @@
'jquery/thickbox-compressed',
'admin',
));
- echo $scripts_for_layout;
+ echo $this->Blocks->get('css');
+ echo $this->Blocks->get('script');
?>
</head>
@@ -56,6 +57,9 @@
</div>
<?php echo $this->element('admin/footer'); ?>
-
+ <?php
+ echo $this->Blocks->get('scriptBottom');
+ echo $this->Js->writeBuffer();
+ ?>
</body>
</html>
@@ -24,7 +24,8 @@
'jquery/thickbox-compressed',
'admin',
));
- echo $scripts_for_layout;
+ echo $this->Blocks->get('css');
+ echo $this->Blocks->get('script');
?>
</head>
@@ -49,6 +50,9 @@
</div>
<?php echo $this->element('admin/footer'); ?>
-
+ <?php
+ echo $this->Blocks->get('scriptBottom');
+ echo $this->Js->writeBuffer();
+ ?>
</body>
</html>
View
@@ -27,7 +27,8 @@
'jquery/supersubs',
'theme',
));
- echo $scripts_for_layout;
+ echo $this->Blocks->get('css');
+ echo $this->Blocks->get('script');
?>
</head>
<body>
@@ -73,6 +74,9 @@
</div>
</div>
</div>
- <?php echo $this->Js->writeBuffer(); ?>
+ <?php
+ echo $this->Blocks->get('scriptBottom');
+ echo $this->Js->writeBuffer();
+ ?>
</body>
</html>

0 comments on commit aadbc17

Please sign in to comment.