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

[eluser]cicovy[/eluser]
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!
#2

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


Cristian Gilè
#3

[eluser]cicovy[/eluser]
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?

Thanks!
#4

[eluser]InsiteFX[/eluser]
Set encoding in editor to NO BOM

InsiteFX
#5

[eluser]cicovy[/eluser]
That didn't help either...
#6

[eluser]InsiteFX[/eluser]
What editor are you using?

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

InsiteFX
#7

[eluser]cicovy[/eluser]
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