Getting Problem in Linking |
Hello,
I am new bee to CI. I just started to develop a dynamic page and I followed the Tutorial. I created the same pages with the same code as guided in this link "http://www.codeigniter.com/user_guide/tutorial/news_section.html". When I visit "application/views/news/index.php" it shows the data but the moment I click on "<p><a href="news/<?php echo $news_item['slug'] ?>">View article</a></p>" to get the full detail of the topic, it redirect the page but shows "404 Page Not Found" error. Thanks
You have to put a .htaccess file into your document root like
PHP Code: RewriteEngine on
Can you explain how your controllers are organized .. is ther a News.php in /controllers
Yes there is News.php in controllers. I followed "http://www.codeigniter.com/user_guide/tutorial/news_section.html". I did the same mentioned in link.
Please post you complete Link you try to connect.
Activate in /application/config/config.php the error logging PHP Code: $config['log_threshold'] = 4; and post the errors.
I am working on localhost, here is the link "http://localhost/CodeIgniter/index.php/news" on this page I retrieve all the records stored in the news table with the hyperlink on "View article" just below to every record. When I click on "View article" of specific record to see the full details of it. It redirects to "http://localhost/CodeIgniter/index.php/news/lorem-ipsum". Here I get "404 Page Not Found".
Should the second link called by http://localhost/CodeIgniter/index.php/n...orem-ipsum ?
|
Welcome Guest, Not a member yet? Register Sign In |