Welcome Guest, Not a member yet? Register   Sign In
Getting php error on production but not development
#8

[eluser]CroNiX[/eluser]
CI's output is buffered when using views, etc. When you echo directly from a controller, that output gets sent immediately followed by the contents of the buffer.

It's best to send any output to the buffer instead of echoing it directly.

Code:
$output = "R ";
$output .= printf("%.2f", "$deliveryTotal");
$output .= '<input type="hidden" name="total" value="' . $total  . '" id="totalval" />';

$this->output->set_output($output);

Your session is sending output to the browser (probably a cookie, sent with a header), so that's where the buffering is coming into play.


Messages In This Thread
Getting php error on production but not development - by El Forum - 06-08-2012, 11:47 PM
Getting php error on production but not development - by El Forum - 06-09-2012, 12:38 AM
Getting php error on production but not development - by El Forum - 06-09-2012, 01:32 AM
Getting php error on production but not development - by El Forum - 06-09-2012, 02:13 AM
Getting php error on production but not development - by El Forum - 06-09-2012, 02:17 AM
Getting php error on production but not development - by El Forum - 06-09-2012, 04:06 AM
Getting php error on production but not development - by El Forum - 06-09-2012, 04:10 AM
Getting php error on production but not development - by El Forum - 06-09-2012, 09:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB