Tuesday, March 30, 2010

Re: recommendable to write view inside html tags?

A good rule of thumb is: anything that is shared between all pages
goes in the layout

On Mar 30, 3:10 pm, Jeremy Burns <jeremybu...@me.com> wrote:
> My opinion... I think these tags belong inside the layout, and have layout tags (div etc) in the view so that they appear inside the body tags rendered by the layout. As a view is always rendered inside a layout (isn't it?) there is no need for html etc inside the view.
>
> Jeremy Burns
> jeremybu...@me.com
>
> On 30 Mar 2010, at 15:07, sebb86 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 sitehttp://cakeqs.organd 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 athttp://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.

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: