I have a problem with the URI. I've tried to look through the post, but couldn't see the answer.
Tutorial can be found here: http://codeigniter.com/user_guide/tutorial/news_section.html
Basically I replicated all and it works fine, but there one think where I don't know whether is my browser or I miss-configured something.
In the "views/news/index.php" I have the following code as per tutorial:
<h2><? echo $news_item['title'] ?></h2>
<div id="main">
<? echo $news_item['text']?>
</div>
<p>[b]<a href="news/<? echo $news_item['slug']?>">View Article</a>[/b]</p>
Now the problem is that when I look into the source html on my browser I see the link as:
View Article
Which I assume is correct. But when I click on, it points me to:
localhost/CI/index.php/news/news/firstnews
As you can see the "news" is repeated twice in the URI. It looks like the browser is simply appending the href value to the URI that is open, instead of cleaning it down to index.php and add it there.
I tried to remove the "news" bit from the href value and it works fine.
I am using Chome if that makes any difference.
Is that my misstake? Or this is just an error in the tutorial?
<a href="news/to<a href="view/and everything worked fine. - gloomy.penguin