I stripped out the controller function leaving it like this 
 
function view($id) {
   $this->layout = 'default_right';
   $this->set('reports', $this->Report->read(null, $id));
 }
 
And it still will not work. So comment out //$this->layout =
'default_right'; 
and it works. 
Makes no sense , the $this->layout = 'default_right'; is simple HTML and
works on every other page on the site
 
If i completely remove $this->layout the page loads using the default
layout. Which is no good to me in this case. Even if I enter $this->layout =
'default'; it breaks once again
 
default_right.ctp (just <body> to <body>..rest is regular baked template)
 
<body>
<div id="wrap">
  <div id="header"> <?php echo $this->element('top_nav'); ?> </div>
  <div id="content">
    <div id="left_side"> <?php echo $sidebar->getSidebar(); ?></div>
    <div id="right_full"><?php echo $content_for_layout; ?></div>
    <div class="clear"></div>
  </div>
</div>
<div id="footer"></div>
<?php echo $cakeDebug; ?>
<?php pr($_SESSION); ?>
</body>
 
Anyone have any idea where to start on this one?
 
Thanks
 
Dave 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to