$_REQUEST parameter problem |
[eluser]krishnakumar2k[/eluser]
am implementing a payment gateway. when i get the return the whole $_REQUEST goes empty. but if i redirect the return to normal php page out side ci then the $_REQUEST parameters appears.What went wrong ?
[eluser]Matty J[/eluser]
Hi there There is nothing wrong with your explanation actually krishnakumar2k - I understood it. I've just encountered the same issue and found a solution elsewhere so thought I should let you know. According to one of the answers in this post, CodeIgniter *purges* the $_REQUEST variable for security reasons. I assume it's related to the automatic input filtering described in the Codeigniter Manual here, but it's not specifically mentioned there either though. I am unsure whether setting Code: $config['global_xss_filtering'] = TRUE; in config.php affects it or not (I have it set to TRUE in mine), but at least now you/we know why the $_REQUEST variable is not available. Interestingly, I have the FB SDK library in my CIApplication/libraries/ folder and it seems to access the $_REQUEST variable fine, just not in views or controllers. Was looking for the answer to the same question when I came across this post. Cheers Matt |
Welcome Guest, Not a member yet? Register Sign In |