EllisLab/CodeIgniter — pull request #560 by dchill42 (2011-10-11 12:16:16+00:00)
Title: Added option to return sub-controller output

This new feature makes minor additions to the following files:

Output.php:
* Adds fork_output() to divert captured output to a separate buffer (forked_output)
* Adds get_forked() to retrieve the diverted output and end output forking (or not)

CodeIgniter.php:
* Adds $return variable to call_controller() for capturing and returning sub-controller output via new fork_output methods

Loader.php:
* Adds $return variable to controller(), which is passed on to call_controller() (if $call is TRUE), resulting in return of output instead of TRUE (on success)