[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.