On Mon, Sep 14, 2009 at 3:04 PM, ildw.com <[email protected]> wrote:
>
> Hello and thanks for your reply,
>
> the problem is that I don't have the header or the footer in the views/
> layouts/
>
> I only have default.ctp like this:
>
> <html>
> <head>
>   <title>Listing Websites</title>
>   <?php echo $html->charset('UTF-8');    ?>
>   <?php //echo $html->css('style.css'); ?>
> </head>
> <body>
>   <h1 align="center"><?php echo $content_for_layout; ?> Listing
> Websites</h1>

This is messed up badly. $content_for_layout is the HTML that Cake
outputs (using the view). It should not be inside an H1 tag.

There's no "header" or "footer" stuff, so I guess it's in the view
file. That doesn't really make good use of the layout, but it's kind
of hard to say without knowing how the site was put together. Anyway,
look in the view file for that controller/action.


>   <?php echo $html->link('Admin panel', '/admin/index'); ?>
> </body>
> </html>
>
> and I think this is for the admin section right??

Normally, the layout for admin views would be in admin.ctp or similar.
Again, though, it's difficult to say for sure without seeing the
entire app. It doesn't appear to have been put together very well,
though.

--~--~---------~--~----~------------~-------~--~----~
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