Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.

unable to load view with _blocks ?

edited December 2010 in Bug Reports
here is my controller index function:

$this->form_validation->set_rules('userID', 'Email or Username', 'trim|required|callback__check_login'); $this->form_validation->set_rules('userPassword', 'Password', 'trim|required'); if(!$this->form_validation->run()) { echo fuel_block('header'); echo 'Something here--'; $this->load->view('login_form'); echo fuel_block('footer'); }
If I fail the form validation, I get a page with the header and footer showing, it also shows the text "Something here--";

If I remove the fuel_blocks then the view is loaded. With the fuel blocks, no view, no error.

I can also call a view from within the fuel_block (views/_block/header.php) successfully.

Not sure what the problem is ?


  • edited 7:58PM
    can you send me the complete controller and and view file? Sounds like an output buffering issue perhaps.
Sign In or Register to comment.