yoursurrogategod Posted October 25, 2012 Share Posted October 25, 2012 Ok, say I have this url (it's a dummy URL, it doesn't lead anywhere meaningful, it's just for illustrative purposes): http://staging.intra...3982/region/TYQ I'm working in Zend Framework 1.10 (hence the slashes between variables and their values). Now, how could I get at the customerOrder and region? I'd like to grab that info when the user clicks on a Fax button (which is custom made and I'd like to use this info for our purposes). Any ideas how I can get this info? A 'zend' way of doing this will be nice, but I'll be pretty happy with using just straight up PHP. Quote Link to comment https://forums.phpfreaks.com/topic/269911-how-to-get-at-information-thats-in-the-url-of-the-site/ Share on other sites More sharing options...
trq Posted October 25, 2012 Share Posted October 25, 2012 To access these parameters you would use the getParams() or getParam() method of the Request object. Quote Link to comment https://forums.phpfreaks.com/topic/269911-how-to-get-at-information-thats-in-the-url-of-the-site/#findComment-1387764 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.