Sample layout:
<head>
<title>
<?php echo $title_for_layout; ?>
</title>
</head>
<body>
<div id="content">
<?php echo $content_for_layout; ?>
</div>
</body>
</html>
All your views are output through the $content_for_layout variable.
Use all the html tags you want, inside of that content div.
On Mar 30, 4:07 pm, sebb86 <kahlc...@googlemail.com> wrote:
> Hello,
> is it recommendable to write all views inside html tags?
> For example:
> [view code]
> <html>
> <head>
> ... some content ...
> </head>
> <body>
> ... view content ...
> </body>
> </html>
> [/code]
>
> Are there any advantages?
>
> At the moment, all of my views are written without <html>, <body>, and
> so on.
>
> Greetings and thanks :-)
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
No comments:
Post a Comment