Linking two views and passing data in the codeigniter 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: Linking two views and passing data in the codeigniter news tutorial (/showthread.php?tid=54566) |
Linking two views and passing data in the codeigniter news tutorial - El Forum - 09-14-2012 [eluser]Unknown[/eluser] Hi all. I just started learning CodeIgniter and I am currently going through the news tutorial guide that is bundled with the set up. There is one thing not clear to me : How did the author(s) of the code in the tutorial manage to create the link from all news items to a view showing a particular news item? Might just be me but I am not getting a proper explanation from the docs on how the HREF tag managed to link one view (news/index) to another (news/view). An answer to the above will be of great help. I not only want to create an update view whereby in a particular news item being displayed, there is a link which links to the update view which passes the data on the update form for modification, I believe it will help me understand a little bit on how CodeIgniter expects someone to implement navigation Linking two views and passing data in the codeigniter news tutorial - El Forum - 09-14-2012 [eluser]Unknown[/eluser] Ok. I have figured out how to generally link between pages(views). The only things remainning is how to pass data from one view to another. I want to pass news item data into a form so that I can update it |