diasansley Posted April 28, 2011 Share Posted April 28, 2011 please have a look at the following view and controller file, PS i have removed the index file using the tutorial given on the ci website now i get a object not found error. ----- view file <?php echo form_open('login/validate_credentials'); ?> <div id="loging_col"> <div id="login_head">Anmelden</div> <div id="email_address_area"> <?php echo form_input('email_address','email'); ?> </div> <div id="email_password_name">E-mail Address</div> <div id="password_area"> <?php echo form_password('password','password' ); ?> </div> <div id="email_password_name">Passwort</div> <div id="form_submit"> <?php echo form_submit('submit', 'Anmelden'); ?> </div> ----------------------- this is the controller class Login extends CI_Controller { function index() { $data['main_content'] = 'login_form'; $this->load->view('login', $data); } function validate_credentials() { $this->load->model('membership_model'); $query = $this->membership_model->validate(); if($query) // if the user's credentials validated... { $data = array( 'email_address' => $this->input->post('email_address'), 'is_logged_in' => true ); $this->session->set_userdata($data); //redirect('site/members_area','refresh'); $this->load->view('main_baukompass'); } else // incorrect username or password { $data['main_content'] = 'username or password does not match'; //redirect('login','refresh'); $this->load->view('login', $data); } } function signup() { $data['main_content'] = 'signup_form'; $this->load->view('registration', $data); } he above code keeps loading the "login/validate_credentials" and says object expected. Link to comment https://forums.phpfreaks.com/topic/234957-view-not-loading/ Share on other sites More sharing options...
mikegeorgeff Posted April 28, 2011 Share Posted April 28, 2011 Whats the exact error you are getting, and which view is not loading Link to comment https://forums.phpfreaks.com/topic/234957-view-not-loading/#findComment-1207920 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.