![]() |
CI newbie and "news" tutorial - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: CI newbie and "news" tutorial (/showthread.php?tid=55236) |
CI newbie and "news" tutorial - El Forum - 10-16-2012 [eluser]CMG Dev[/eluser] I'm new to CodeIgniter so I have decided to follow user guide first and actually I'm stuck on http://ellislab.com/codeigniter/user-guide/tutorial/news_section.html :\ I'm able to display "news" but when I click to see particular news by slug I'm getting 404 error. Links to slug part looks like /index.php/news/test-X and routes are: Code: $route['news/create'] = 'news/create'; Also I have tried to switch in the /views/news/index.php Code: <p><a href="news/<?php echo $news_item['slug'] ?>">View article</a></p> to Code: <a href="<?php echo base_url('news/' . $news_item['slug']);?>">View article</a> but in that case I'm not getting any news listings. Any clue? Thanks CI newbie and "news" tutorial - El Forum - 10-16-2012 [eluser]CMG Dev[/eluser] OK. I was able to resolve issue based on that thread: http://ellislab.com/forums/viewthread/209349/ IMO Tutorial should be fixed to avoid questions like mine ![]() |