[eluser]Unknown[/eluser]
Hello CI Community,
I am confused by something. I have several simple functions in my controller like the following:
Code:
function createEmployee()
{
$this->load->view('createEmployees');
}
Upon execution the functions perform their task but I am not redirected back to the main 'view'. I have been following one of the video tutorials and it didn't address this issue. Here is my index function...
Code:
function index()
{
$this->load->library('table');
$employee = array();
if($query = $this->employees_model->getAll())
{
$employee['records'] = $query;
}
$this->load->view('home', $employee);
}
Please help me see the error in my ways... Thanks!