Welcome Guest, Not a member yet? Register   Sign In
Loading multiple views in a controller is adding Returns [Enter key]

Hi,Can someone tell me how to get rid of the returns when loading multiple views in a controller? I am loading a header, a menu and a content from views/partial/ and between them, there is a return, a line break which is causing my HTML to move with one line... Thanks!

[eluser]Cristian Gilè[/eluser]
Please, post the code.

Cristian Gilè

I figured it out. After each view loaded, there was a dash "-" added. Does someone knows why? The encoding type was set to UTF-8. When switched to ANSI, that dash was gone and the page layout displayed properly.

Any thoughts?


Set encoding in editor to NO BOM


That didn't help either...

What editor are you using?

Notepad++ does not work write for editing php files.


Actually, Notepad++ is what I use for small files from the views and PHPDesigner 7 when dealing with controllers and models... I thinks I will always edit my files in Zend or PHPDesigner from now on.

Thanks, it worked after saving all files in PHPDesigner.

Theme © iAndrew 2016 - Forum software by © MyBB