06.02 php saved
stevieboy
Tags add more
 
Note
this is a basic template layout (i hope it's correct) ...

replace the views/layouts/default.ctp with this paste
  1. <?php echo $html->docType('xhtml11'); ?>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  5. <title> 
  6.         <?php __('My CakeApp'); ?>
  7.         <?php echo " | "; ?>
  8.         <?php echo $title_for_layout;?>
  9. </title>
  10.  
  11.     <?php
  12.         echo $html->charset();
  13.         echo "\n";
  14.         echo $html->meta('icon',$html->base.'/favicon.gif');
  15.         echo "\n";
  16.         echo $html->css('default');
  17.         echo "\n";
  18.        
  19.        
  20.         echo "\n<!-- includes for specific layouts START -->\n";
  21.         echo $scripts_for_layout;
  22.         echo "\n<!-- includes for specific layouts END -->\n";
  23.         echo "\n";
  24.     ?>
  25. </head>
  26. <body>
  27. <div id="outer">
  28.    
  29.         <div id="header">
  30.  
  31.         </div>
  32.         <div id="menu">
  33.             <?php echo $this->renderElement('mainmenu',
  34.                         array( 'page' => $title_for_layout)
  35.                         ); ?>
  36.         </div>
  37.    
  38.     <div class="clear"></div>
  39.     <div id="content">
  40.         <div id="sidebar">
  41.             <?php echo $this->renderElement('sidebar',
  42.                     array("latestNews" => $latestNews)
  43.                     ); ?>
  44.         </div>
  45.         <div id="primaryContent">
  46.             <?php
  47.             if ($session->check('Message.flash')):
  48.                     $session->flash();
  49.             endif;
  50.             ?>
  51.             <?php echo $content_for_layout;?>
  52.         </div>
  53.         <div class="clear"></div>
  54.     </div>
  55.     <div id="footer">
  56.         <p>Copyright � 2008 stevieboy</p>
  57.     </div>
  58. </div>
  59.  
  60. <div style="width: 90%;margin: auto; color: black;border-top: 1px solid red; text-align: left;">
  61.     <?php echo $cakeDebug; ?>
  62. </div>
  63.  
  64. </body>
  65. </html>
Parsed in 0.136 seconds, using GeSHi 1.0.7.14

Modify this Paste