application/controllers/login.php
// creating new account for hostel admin
creating new account for hostel admin
creating new account for hostel admin
function createAccount()
	{
		$userdata['userEmail'] = $this->accountinfo->getEmail();
		$userdata['password']  = $this->input->post('pass');
		if ($this->accountinfo->updateData($userdata)) {
			$this->session->set_flashdata('feedback','Password created successfully. please login..');
			$this->session->set_flashdata('feedback_class','alert-success');
		} else {
			$this->session->set_flashdata('feedback','Error, please give accurat info to create password.');
			$this->session->set_flashdata('feedback_class','alert-danger');
			return redirect('login/signup');
		}
		return redirect('login');
	}
function createAccount ( ) { $ userdata [ 'userEmail' ] = $ this -> accountinfo -> getEmail ( ) ; $ userdata [ 'password' ] = $ this -> input -> post ( 'pass' ) ; if ( $ this -> accountinfo -> updateData ( $ userdata ) ) { $ this -> session -> set_flashdata ( 'feedback' , 'Password created successfully. please login..' ) ; $ this -> session -> set_flashdata ( 'feedback_class' , 'alert-success' ) ; } else { $ this -> session -> set_flashdata ( 'feedback' , 'Error, please give accurat info to create password.' ) ; $ this -> session -> set_flashdata ( 'feedback_class' , 'alert-danger' ) ; return redirect ( 'login/signup' ) ; } return redirect ( 'login' ) ; }
creating new account for hostel admin
creating new account for hostel admin