URI param unwanted passing problem |
[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
[eluser]Iván Argulo[/eluser]
Could you post your .htaccess file, and your controllers?
[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
[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...
[eluser]HarisB[/eluser]
You mean controllers for the widgets involved? Each page has multiple.
[eluser]HarisB[/eluser]
Here is how I am buliding the links: Code: //
[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...
[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.
[eluser]Iván Argulo[/eluser]
Yep, I think it's not related to CodeIgniter. Good luck |
Welcome Guest, Not a member yet? Register Sign In |