Welcome Guest, Not a member yet? Register   Sign In
$this->load->view() and $this->parser->parse() can't permit two calls in the same run
#4

[eluser]Unknown[/eluser]
[quote author="tonanbarbarian" date="1196822891"]If you want to get the result of the view in a variable then you need to set the 3rd parameter to true

i.e.
Code:
function ParsePage()
{
  $header = $this->load->view(header.php, null, true);
  $body = $this->load->view(body.php, null, true);
  $footer = $this->load->view(footer.php, null, true);

  return $header.$body.$footer;
}

just of note in case you are not aware the 2nd parameter is the data to send to the view. I am setting to null in this example because I do not know if you have any data to send[/quote]

Tankyou tonanbarbarian. You solved my problem. It's very easy Smile. Tanks


Messages In This Thread
$this->load->view() and $this->parser->parse() can't permit two calls in the same run - by El Forum - 12-05-2007, 12:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB