Welcome Guest, Not a member yet? Register   Sign In
I can't to do works two functions at same times.
#5

[eluser]masentinel900[/eluser]
Ok, I´m sorry if I don´t explain me of the better way.
Here I put a single example, The mine is a bit most hard.

If I need to make a page with Header, Body and Footer; And the controller will look like this:

Controller
Code:
function header()
{
   $data['header'] = "Here goes the Header content";
   $this->load->view('page', $data);
}
function body()
{
   $data1['body'] = "Here goes the body content";
   $this->load->view('page', $data1);
}
function footer()
{
   $data2['footer'] = "Here goes the footer content";
   $this->load->view('page', $data2);
}

So In the page file in the VIEWS I call that variables simply adding a php script with "echo $footer", "echo $header" and "echo $body".

My problem start when I try of add the three variables same time, I need use them in the same page.

I thought that were problem of Index.php and I´ve been trying of remove it but I don´t get it..

Many thanks to the people that interest in this post..


Messages In This Thread
I can't to do works two functions at same times. - by El Forum - 10-12-2012, 05:55 AM
I can't to do works two functions at same times. - by El Forum - 10-12-2012, 09:40 AM
I can't to do works two functions at same times. - by El Forum - 10-12-2012, 05:52 PM
I can't to do works two functions at same times. - by El Forum - 10-12-2012, 07:26 PM
I can't to do works two functions at same times. - by El Forum - 10-13-2012, 09:19 AM
I can't to do works two functions at same times. - by El Forum - 10-13-2012, 09:27 AM
I can't to do works two functions at same times. - by El Forum - 10-13-2012, 09:40 AM
I can't to do works two functions at same times. - by El Forum - 10-13-2012, 09:49 AM
I can't to do works two functions at same times. - by El Forum - 10-13-2012, 09:56 AM
I can't to do works two functions at same times. - by El Forum - 10-13-2012, 11:28 AM
I can't to do works two functions at same times. - by El Forum - 10-14-2012, 02:37 PM
I can't to do works two functions at same times. - by El Forum - 10-14-2012, 02:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB