Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter 3.x + XenForo 1.5 + PHP native 5.3
#2

For some context: when you call $this->load->view('filename'), the loader starts the output buffer, loads the file, and appends the content to the buffer (it also manages nesting to allow you to calling $this->load->view() from inside a view). Eventually it sends the buffer to CI's output class, which eventually sends everything to the browser.

So, what are the potential causes for the behavior you're seeing?
- something (most likely XenForo) started output before you loaded the view(s)
- something (still most likely XenForo) tried to manipulate CI's environment and messed it up

The first is the most likely of the two, and if it's only happening with certain versions of PHP, I would guess that you're getting an error somewhere (which will often start output early). Any use of echo, print, or similar language features/functions/methods can start output, and should never be done anywhere other than a view.
Reply


Messages In This Thread
RE: CodeIgniter 3.x + XenForo 1.5 + PHP native 5.3 - by mwhitney - 10-21-2015, 12:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB