Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CodeIgniter - Editing Output Buffer before sent to browser?

I'm researching the PHP framework CodeIgniter. I need some help regarding editing the output before it's flushed to the user.

Usually in PHP, you can just use ob_start(); and then ob_get_clean(); to retrieve the contents.

While reading the CodeIgniter documentation, though, they say all output is already buffered.

Has anybody experience with unintentionally starting a second ob_start() ? Alternatively, can anyone talk about the CodeIgniter output buffering so I may edit it?

like image 499
SoreThumb Avatar asked May 05 '11 16:05

SoreThumb


1 Answers

As far as I know it's handled automatically by CodeIgniter, unless you manually specify the output methods yourself. See: http://ellislab.com/codeigniter/user-guide/general/controllers.html#output

(also congrats on deciding to use CodeIgniter, I can't get enough of this framework!)

like image 68
wyqydsyq Avatar answered Sep 23 '22 14:09

wyqydsyq