[eluser]xtremer360[/eluser]
What I'm trying to do is take the id of the active template and the string index to the pageStatus function and find out if the status of the page has a value of 1. When I run the print_r function like below I get this:
Code:
Array ( [0] => Array ( [status_id] => 1 ) )
Controller:
Code:
if ($this->kow->pageStatus('index', $activeTemplate[0]->id) == 1){
$page = $this->load->view($activeTemplate[0]->short_name.'/pages/index', '', true);
} else {
$page = $this->load->view($activeTemplate[0]->short_name.'/pages/404', '', true);
}
print_r($this->kow->pageStatus('index', $activeTemplate[0]->id));