Welcome Guest, Not a member yet? Register   Sign In
Stuck in Tutorial (News_Section)
#3

[eluser]Unknown[/eluser]
I just finished the introduction today! I know this is kind of obvious, but make sure you enter the correct slug in the url. If you want to go to the News Title 1 article make sure you enter the correct slug in your table for that article in the url after index.php/news/. For example, look at my setup (attached the file below). If I want to go to the Test Article I would enter index.php/news/test-article (since that is the slug I set in my table).

I think it is 404'ing because the it did not retrieve the correct article based on the slug and the $data['news_item'] is empty:

Code:
if (empty($data['news_item'])){
   show_404();
  }



Messages In This Thread
Stuck in Tutorial (News_Section) - by El Forum - 07-03-2013, 11:43 PM
Stuck in Tutorial (News_Section) - by El Forum - 07-04-2013, 03:56 PM
Stuck in Tutorial (News_Section) - by El Forum - 07-04-2013, 05:28 PM
Stuck in Tutorial (News_Section) - by El Forum - 07-04-2013, 11:04 PM
Stuck in Tutorial (News_Section) - by El Forum - 07-05-2013, 03:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB