Welcome Guest, Not a member yet? Register   Sign In
Problem with redirect
#1

[eluser]Unknown[/eluser]
Hello, im doing a login and when i validate the user data show a white screen, im using redirect to call (menu/user_form) menu class and user_form function.

this is the code of my login controller:

Code:
public function validate_data()
{
$query = $this->login_model->validate();
if($query) //credenciales validadas
{
$data = array( 'username' => $this->input->post('username'), 'is_logedin' => true );
$this->session->set_userdata($data);
redirect('menu/index', 'refresh');
}
else
{
$this->load->view('sieapp/forgot_pass');
}
}

and this is for menu controller:

Code:
class Menu extends CI_Controller
{
public function index()
{
$data['title'] = 'menu';
$this->load->view('sieapp/menu_form', $data);
}
}

Thanks for the help.


Messages In This Thread
Problem with redirect - by El Forum - 01-07-2013, 03:07 PM
Problem with redirect - by El Forum - 01-07-2013, 06:45 PM
Problem with redirect - by El Forum - 01-08-2013, 11:29 AM
Problem with redirect - by El Forum - 01-08-2013, 11:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB