Welcome Guest, Not a member yet? Register   Sign In
How can I get show_error() to load views?
#1

[eluser]cdechery[/eluser]
I have this website where all my pages have header and footer, which are views. The head is specially important as it loads all the CSS, the Javascript and formats everything. So you would have in most Controllers methods something like this:

Code:
$this->load->view('head');
$this->load->view('whatever-body');
$this->load->view('foot');

But show_error uses its own HTML template without all the stuff I need, that is already loaded in the head view. I don't want to replicate this.

Can I override show_error() somehow to be able to put the error message inside head and foot?


Messages In This Thread
How can I get show_error() to load views? - by El Forum - 11-22-2013, 09:57 AM
How can I get show_error() to load views? - by El Forum - 11-22-2013, 12:26 PM
How can I get show_error() to load views? - by El Forum - 11-23-2013, 05:24 AM
How can I get show_error() to load views? - by El Forum - 11-23-2013, 06:48 AM
How can I get show_error() to load views? - by El Forum - 11-23-2013, 10:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB