Welcome Guest, Not a member yet? Register   Sign In
Throwing a 404 with CI
#1

[eluser]iConTM[/eluser]
Can someone give an example of throwing a 404 with CI?

In the controller class I have something like this:

Code:
function article ($article_id)
{
  $article = $this->model->get_article($article_id);

  if (!$article)
  {
    //throw error 404
    return;
  }

}


Messages In This Thread
Throwing a 404 with CI - by El Forum - 06-13-2010, 08:55 AM
Throwing a 404 with CI - by El Forum - 06-13-2010, 08:59 AM
Throwing a 404 with CI - by El Forum - 06-13-2010, 09:03 AM
Throwing a 404 with CI - by El Forum - 06-13-2010, 09:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB