Welcome Guest, Not a member yet? Register   Sign In
pass variable through segments with security
#6

[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
pass variable through segments with security - by El Forum - 05-07-2009, 12:05 AM
pass variable through segments with security - by El Forum - 05-07-2009, 12:49 AM
pass variable through segments with security - by El Forum - 05-07-2009, 03:17 AM
pass variable through segments with security - by El Forum - 05-07-2009, 05:25 AM
pass variable through segments with security - by El Forum - 05-07-2009, 06:24 AM
pass variable through segments with security - by El Forum - 06-13-2010, 08:50 AM
pass variable through segments with security - by El Forum - 06-13-2010, 09:42 AM
pass variable through segments with security - by El Forum - 06-14-2010, 06:01 PM
pass variable through segments with security - by El Forum - 06-20-2010, 04:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB