function Home()
{
parent::Public_Controller();
$this->load->library('survey_form_processing');
//Load Helpers
$this->load->helper('form');
$this->load->library('Paypal_Lib');
$this->lang->load('userlib');
$this->load->model('home_model');
if($foo == true){
redirect('home');
}
}
This is my construct of the "Home" controller. If a value == true, how can I redirect to the index function? When I try this I get an error...
Is it possible to redirect to the index function?
P.S. I'm a php/CI noob!