![]() |
Calling a controller - 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: Calling a controller (/showthread.php?tid=50369) |
Calling a controller - El Forum - 03-24-2012 [eluser]Unknown[/eluser] Hi everybody! Im workin in a CMS, i have users and this users must login to make something, when they login the redirect from /login to /administrator/wellcome In this area, it show a list of the sites that this user can edit, for each site it creates a link to edit the selected site, and this redirect to this location: /administrator/edit_site/name_site In this page u can upload and image, and below it you find another list with the items created for the site, for each item it creates a link to edit the item, and here is where i cant make it work Every link is created this way (on the view): /administrador/edit_site/edit_item/item_name And i need the link must go here: /administrador/edit_item/item_name This is the code to generate the link in the view: Code: foreach ($items->result() as $row):?> Something is going wrong with the code labels, in the href must apper: echo"edit_item/".$row->item_name Thanks for your help! |