Do you mean I can have this <?php echo "hello";
whthout the closing ?> and it is ok? Slts ----- Original Message ----- From: David Roda To: cake-php@googlegroups.com Sent: Friday, November 13, 2009 4:39 PM Subject: Re: Blank line before views rendering 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 <make.cake.b...@gmail.com> wrote: Ok...I just read it wrong. I thought you were saying remove "?>" entirely, not "?>(space)" My bad. Dave -----Original Message----- From: calzone [mailto:calz...@gmail.com] 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" <make.cake.b...@gmail.com> 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:pvi...@gmail.com] > Sent: November-13-09 11:40 AM > To: cake-php@googlegroups.com > Subject: Re: Blank line before views rendering > > Anyway, it's recommended to remove ?> in controllers, models and any > other .php file > > Regards, > > Pablo Viojo > pvi...@gmail.comhttp://pviojo.net > > ¿Que necesitas?http://needish.com > > On Fri, Nov 13, 2009 at 4:28 AM, PDEagle <liugang....@gmail.com> 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 cake-...@googlegroups.com. > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com > <mailto:cake-php%2bunsubscr...@googlegroups.com> . > 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 cake-...@googlegroups.com. > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com. > 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 cake-...@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. 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 cake-...@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. 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 cake-...@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. 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 cake-...@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cake-php?hl=.