Welcome Guest, Not a member yet? Register   Sign In
Tutorial for CI 3 - news section - bug found
#1

In the tutorial at creation of application/views/news/index.php (on http://www.codeigniter.com/user_guide/tu...ction.html) is a detail missing.
The line
<p><a href="<?php echo $news_item['slug'] ?>">View article</a></p>
does not work, because the created link is only the slug, but it must be news/slug. The following change corrects the issue (and was also part of the documentation for CI 2).
<p><a href="news/<?php echo $news_item['slug'] ?>">View article</a></p>

Can anyone confirm this?

Thanks

PBI
Reply


Messages In This Thread
Tutorial for CI 3 - news section - bug found - by pbi - 08-09-2015, 12:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB