unable to load view with _blocks ?

pscpsc
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 ?

Comments

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