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. For more options, visit this group at http://groups.google.com/group/cake-php?hl=.