[eluser]stuartr[/eluser]
[quote author="TheFuzzy0ne" date="1363686817"]
If you're getting a 404 error, that's most likely due to one of two things.
1) You're not using the correct slug (or the article doesn't exist in the database).
2) Your view method is not in the right place (it might be in your model instead of your controller).[/quote]
There is a third option, which has happened to a number of people, including myself - if it is the cause of the issue it will become apparent in the URL that is generated for the news article. The tutorial uses a relative URL, and this can lead to the URL generated including the news segment twice e.g. /news/news/
If this is the case, then the link in the view file should be amended to use a static URL possibly using the URL helper function as below
Code:
$view_segments=array('news',$news_item['slug']);
....
Code:
<a href="<?php echo site_url($view_segments);?>">View article</a>