Welcome Guest, Not a member yet? Register   Sign In
value pssing
#4

[eluser]WanWizard[/eluser]
The standard way of working is the other way around.

If you need information from a method (model, library or controller), you do
Code:
$data['sample'] = $this->sample();
$this->load->view('viewfile', $data);

and then the result of the sample() method is available in your view via $sample.

You should never generate output outside the output class.
If output compression is off, it will end up at the wrong place, if it is on, you end up with a blank page.


Messages In This Thread
value pssing - by El Forum - 08-30-2010, 01:01 AM
value pssing - by El Forum - 08-30-2010, 01:56 AM
value pssing - by El Forum - 08-30-2010, 02:53 AM
value pssing - by El Forum - 08-30-2010, 03:00 AM
value pssing - by El Forum - 08-30-2010, 04:34 AM
value pssing - by El Forum - 08-30-2010, 05:00 AM
value pssing - by El Forum - 08-30-2010, 10:27 AM
value pssing - by El Forum - 08-31-2010, 11:17 PM
value pssing - by El Forum - 09-01-2010, 12:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB