He actually was saying that

The PHP parser inserts ?> automatically at the end of the files if its not
there.  I've read this recommendation in many php frameworks which use
template files.

On Fri, Nov 13, 2009 at 12:33 PM, Dave <[email protected]> wrote:

> Ok...I just read it wrong.
>
> I thought you were saying remove "?>" entirely, not "?>(space)"
>
> My bad.
>
> Dave
>
> -----Original Message-----
> From: calzone [mailto:[email protected]]
> Sent: November-13-09 1:47 PM
> To: CakePHP
> Subject: Re: Blank line before views rendering
>
> I have found this problem crops up with carriage returns after the closing
> ?> in any model file.
>
> Go through all your model files and make sure there is no more than 1
> carriage returning following the last ?>
>
> On Nov 13, 8:31 am, "Dave" <[email protected]> wrote:
> > What do you mean by remove ?>
> >
> > I have never heard of this before. Can you explain a little more or a
> > link where I can read more about this?
> >
> > Thanks,
> >
> > Dave
> >
> >   _____
> >
> > From: Pablo Viojo [mailto:[email protected]]
> > Sent: November-13-09 11:40 AM
> > To: [email protected]
> > Subject: Re: Blank line before views rendering
> >
> > Anyway, it's recommended to remove ?> in controllers, models and any
> > other .php file
> >
> > Regards,
> >
> > Pablo Viojo
> > [email protected]http://pviojo.net
> >
> > ¿Que necesitas?http://needish.com
> >
> > On Fri, Nov 13, 2009 at 4:28 AM, PDEagle <[email protected]> wrote:
> >
> > Hi guys,
> >
> > I'm creating a blog system with cake, and now I encounted a problem
> > which has puzzled me for days. When the views rendering, there is
> > sometimes a blank line at the top, e.g. the layout looks like:
> >
> > <div id="eg1">
> >        <?php echo $content_for_layout; ?> </div>
> >
> > and the view file looks like:
> >
> > <div id="eg2">...</div>
> >
> > There would be a blank line inserting before eg2. The odd thing is,
> > sometimes there is such a line, and sometimes there is no. I have
> > checked out that in all controller files and model files, there are no
> > space before <?php and after ?>. In fact, I doubt that the problem
> > arises because of the encoding way of the ctp file. Take my posts/
> > admin_add.ctp as an example, when saves it as UTF-8, the secrect blank
> > line appears, while saves it as ANSI, the line disappears. However,
> > there is another ctp file, it is also encoded as UTF-8 and it can
> > render in the right way.
> >
> > Has anyone encounted the same problem? Or can anyone give me some
> > hint? 3x~
> >
> > --
> >
> > 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]<cake-php%[email protected]>
> > <mailto:cake-php%[email protected]<cake-php%[email protected]>>
> .
> > For more options, visit this group
> athttp://groups.google.com/group/cake-php?hl=.
> >
> > --
> >
> > 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]<cake-php%[email protected]>
> .
> > For more options, visit this group
> athttp://groups.google.com/group/cake-php?hl=.
> >
> > No virus found in this incoming message.
> > Checked by AVG -www.avg.com
> > Version: 9.0.707 / Virus Database: 270.14.60/2496 - Release Date:
> > 11/13/09 04:24:00
>
> --
>
> 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]<cake-php%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.707 / Virus Database: 270.14.60/2496 - Release Date: 11/13/09
> 04:24:00
>
> --
>
> 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]<cake-php%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
>

--

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=.


Reply via email to