Welcome Guest, Not a member yet? Register   Sign In
[SOLVED]Hook Question
#2

[eluser]idealws[/eluser]
Sounds like your loading the data via your controller at least you should be. And your more than likely using a conditional statement such as:

Code:
if($this){
    $this->load->view('yourview');
}else{
    $this->load->view('yourview');
}

If this is the case why not try adding variable in the condition like so:

Code:
if($this){
    $data['tablewasloaded'] = TRUE;
    $this->load->vars($data);
    $this->load->view('yourview');
}else{
    $data['tablewasloaded'] = FALSE;
    $this->load->vars($data);
    $this->load->view('yourview');
}

In your footer view:
Code:
if($tablewasloaded){
    // Show something here
}

Kind of a quick example but should get your started.


Messages In This Thread
[SOLVED]Hook Question - by El Forum - 08-03-2011, 04:46 PM
[SOLVED]Hook Question - by El Forum - 08-03-2011, 06:05 PM
[SOLVED]Hook Question - by El Forum - 08-03-2011, 06:45 PM
[SOLVED]Hook Question - by El Forum - 08-03-2011, 09:41 PM
[SOLVED]Hook Question - by El Forum - 08-03-2011, 11:24 PM
[SOLVED]Hook Question - by El Forum - 08-03-2011, 11:39 PM
[SOLVED]Hook Question - by El Forum - 08-04-2011, 02:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB