![]() |
URI segment passing to functions doesn't work - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: URI segment passing to functions doesn't work (/showthread.php?tid=27507) |
URI segment passing to functions doesn't work - El Forum - 02-12-2010 [eluser]blazarian[/eluser] Why the default uri segment passing to functions doesn't work for me? I use it like in the example mentioned in here. I haven't changed or routed anything so why this method isn't working out of the box? I mean what do I need to check? The parameter just doesn't pass to function. URI segment passing to functions doesn't work - El Forum - 02-12-2010 [eluser]danmontgomery[/eluser] Have you enabled profiling to see what CI has determined is the URI? What happens when you pass parameters in the URI? Does it still go to the correct controller/method? Does it work if you enable routing? What URI are you going to? What does the code look like? URI segment passing to functions doesn't work - El Forum - 02-12-2010 [eluser]blazarian[/eluser] Yes the controller and method loads normally but the parameters just won't pass to the method. The variable that should contain the passed value is 0 whatever I do. So the problem is with the parameter passing and I have no clue where's the problem. URI segment passing to functions doesn't work - El Forum - 02-12-2010 [eluser]danmontgomery[/eluser] Post the URI you're using and the relevant function URI segment passing to functions doesn't work - El Forum - 02-12-2010 [eluser]blazarian[/eluser] ...index.php/kokonaisuus/create/1 Code: function create($projekti_id) Dunno what I'm missing. Maybe some stupid mistake from me somewhere... although I have checked things couple times over. URI segment passing to functions doesn't work - El Forum - 02-13-2010 [eluser]blazarian[/eluser] Would be awesome to have this problem solved if anyone could tell me what to check or where might be some kinda problem? Sorry for posting again, but I gotta have this thing solved asap. ![]() URI segment passing to functions doesn't work - El Forum - 02-13-2010 [eluser]cahva[/eluser] Terve ![]() Code: function create($projekti_id) |