Welcome Guest, Not a member yet? Register   Sign In
redirect doesn't work
#1

[eluser]max123[/eluser]
function add_vacancy()
{
$this->load->helper('url');
$this->load->model('officer/officer_vacancy');
$user['user_id'] = $this->session->userdata('email');
$user['user_group'] = $this->redux_auth_model->getUserGroupByUserId($user['user_id']);
echo $new_user_id = $this->officer_vacancy->create_new_user($user);

redirect('/officer/officer_vacancy/new_vacancy', 'refresh');
}

This is my function. 'officer' is the sub folder inside the controller folder. Following is the error

A PHP Error was encountered
Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\Mycareergate3\system\application\controllers\officer\home.php:17)

Filename: helpers/url_helper.php

Line Number: 528

Please help me to solve this problem


Messages In This Thread
redirect doesn't work - by El Forum - 01-28-2010, 06:05 AM
redirect doesn't work - by El Forum - 01-28-2010, 06:14 AM
redirect doesn't work - by El Forum - 01-28-2010, 06:34 AM
redirect doesn't work - by El Forum - 01-28-2010, 06:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB