multiple view concatenation support
diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php
index a61b963..d2f5702 100644
--- a/system/libraries/Loader.php
+++ b/system/libraries/Loader.php
@@ -719,7 +719,7 @@
{
// PHP 4 requires that we use a global
global $OUT;
- $OUT->set_output(ob_get_contents());
+ $OUT->append_output(ob_get_contents());
@ob_end_clean();
}
}
diff --git a/system/libraries/Output.php b/system/libraries/Output.php
index bafc9a1..14640d8 100644
--- a/system/libraries/Output.php
+++ b/system/libraries/Output.php
@@ -71,7 +71,30 @@
}
// --------------------------------------------------------------------
-
+
+ /**
+ * Append Output
+ *
+ * Appends data onto the output string
+ *
+ * @access public
+ * @param string
+ * @return void
+ */
+ function append_output($output)
+ {
+ if ($this->final_output == '')
+ {
+ $this->final_output = $output;
+ }
+ else
+ {
+ $this->final_output .= $output;
+ }
+ }
+
+ // --------------------------------------------------------------------
+
/**
* Set Header
*