Welcome Guest, Not a member yet? Register   Sign In
Custom, database-driven 404 page -- can this be improved?
#3

[eluser]Colin Williams[/eluser]
You can't just serve up the content from the Page controller with a 404 header? I only briefly checked.

Instead of:

Code:
if (!$data['page']) show_404($this->uri->uri_string());

do:

Code:
if (!$data['page'])
{
   $data['page'] = $this->Page_model->get_page('404');
   $this->output->set_header("HTTP/1.1 404 Not Found");
}

You'll probably have to do more, for sure, but no reason to call show_404


Messages In This Thread
Custom, database-driven 404 page -- can this be improved? - by El Forum - 07-14-2008, 09:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB