Welcome Guest, Not a member yet? Register   Sign In
White space before pseudo-variables when using Parser and Loader class
#1

[eluser]bimtee[/eluser]
I am getting white space before each pseudo-variable


$data = array(
'title' => 'Company',
'menu' => $this->load->view('menu','', true),
'content' => $this->load->view('company','', true),
'footer' => $this->load->view('footer','', true)
);

$this->parser->parse('container', $data);


i.e. before menu, content and footer which are all HTML there is a white space above each of them in the container.


****white space*** ****white space***
MENU CONTENT


****white space***
FOOTER


I have used Unix style delimiters in Eclipse and Notepad++ and UTF-8 encoding but the same thing happens.

If i view the source code and copy it into notepad i can see the line feed (square box)

Any suggestions on how to remove this?




Theme © iAndrew 2016 - Forum software by © MyBB