URI param unwanted passing problem - 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: URI param unwanted passing problem (/showthread.php?tid=20565) |
URI param unwanted passing problem - El Forum - 07-14-2009 [eluser]HarisB[/eluser] Hi, I have a problem with the URI param. It passes the same parameter no matter what I set the parameter on link. So if I am on the page: http://mysite.com/app/home/p/525 and I have many other links on this page to: http://mysite.com/app/list/p/526 or http://mysite.com/app/list/p/527 it constantly defaults to http://mysite.com/app/list/p/525 whenever the link is clicked. Thanks, Haris URI param unwanted passing problem - El Forum - 07-14-2009 [eluser]Iván Argulo[/eluser] Could you post your .htaccess file, and your controllers? URI param unwanted passing problem - El Forum - 07-14-2009 [eluser]HarisB[/eluser] Don't think I have the access to the .htaccess file. Also there are way too many controllers to post. I wasn't sure if there is an obvious solution to this. I am using the RightNow interface so I am guessing it has to do with something how they programmed it rather than what CodeIgniter controls. If you don't have a quick answer I will try and find another way out of this. Thanks, Haris URI param unwanted passing problem - El Forum - 07-14-2009 [eluser]Iván Argulo[/eluser] [quote author="HarisB" date="1247612578"]Don't think I have the access to the .htaccess file. Also there are way too many controllers to post. I wasn't sure if there is an obvious solution to this. I am using the RightNow interface so I am guessing it has to do with something how they programmed it rather than what CodeIgniter controls. If you don't have a quick answer I will try and find another way out of this. Thanks, Haris[/quote] Well, .htaccess file can redirect badly some urls, also review what is in your config/routes.php; with the information you provided is very difficult to wonder what's happening... When I told you to post your controllers, I don't mean to post all your application, just the 2 controllers involved, at least the function and the parameters passed... URI param unwanted passing problem - El Forum - 07-14-2009 [eluser]HarisB[/eluser] You mean controllers for the widgets involved? Each page has multiple. URI param unwanted passing problem - El Forum - 07-14-2009 [eluser]HarisB[/eluser] Here is how I am buliding the links: Code: // URI param unwanted passing problem - El Forum - 07-14-2009 [eluser]Iván Argulo[/eluser] [quote author="HarisB" date="1247613289"]You mean controllers for the widgets involved? Each page has multiple.[/quote] http://mysite.com/app/home/p/525 means: Folder: app Controller: home (for sure it will be in application/controllers folder, file home.php, at least it should be there) Function: p($param). It doesn't matter if there are widgets (as you call them), but sure there is a controller called home and another one called list... URI param unwanted passing problem - El Forum - 07-14-2009 [eluser]HarisB[/eluser] This one is for home: Code: // For list: Code: // I am pretty sure there is nothing within the widgets that can be setting this. I think solving this may go deep in how RightNow coded their portal. URI param unwanted passing problem - El Forum - 07-14-2009 [eluser]Iván Argulo[/eluser] Yep, I think it's not related to CodeIgniter. Good luck |