From b0dd10f8171945e0c1f3527dd1e9d18b043e01a7 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 25 Aug 2006 17:25:49 +0000 Subject: Initial Import --- user_guide/libraries/output.html | 112 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 user_guide/libraries/output.html (limited to 'user_guide/libraries/output.html') diff --git a/user_guide/libraries/output.html b/user_guide/libraries/output.html new file mode 100644 index 000000000..1a4537af6 --- /dev/null +++ b/user_guide/libraries/output.html @@ -0,0 +1,112 @@ + + + + +Code Igniter User Guide + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +

Code Igniter User Guide Version 1.4.0

+
+ + + + + + + + + +
+ + +
+ + + +
+ + +

Output Class

+ +

The Output class is a small class with one main function: To send the finalized web page to the requesting browser. It is +also responsible for caching your web pages, if you use that feature.

+ +

Note: This class is initialized automatically by the system so there is no need to do it manually.

+ +

Under normal circumstances you won't even notice the Output class since it works transparently without your intervention. +For example, when you use the Loader class to load a view file, it's automatically +passed to the Output class, which will be called automatically by Code Igniter at the end of system execution. +It is possible, however, for you to manually intervene with the output if you need to, using either of the two following functions:

+ +

$this->output->set_output();

+ +

Permits you to manually set the final output string. Usage example:

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

Important: If you do set your output manually, it must be the last thing done in the function you call it from. +For example, if you build a page in one of your controller functions, don't set the output until the end.

+ + +

$this->output->get_output();

+ +

Permits you to manually retrieve any output that has been sent for storage in the output class. Usage example:

+$string = $this->output->get_output(); + +

Note that data will only be retrievable from this function if it has been previously sent to the output class by one of the +Code Igniter functions like $this->load->view().

+ + + +
+ + + + + + + \ No newline at end of file -- cgit v1.2.3-24-g4f1b