php - Zend Routing -- Grabbing Variables from URL with Ampersands and not Slashes - Tapjoy -


i'm creating attempting integrate tapjoy api callback url request comes in form:

<callback_url>?snuid=<user_id>&currency=&mac_address=<mac_address>&display_multiplier=<display_multiplier> 

however, using zf1 -- zend_controller_router_route seems dependent on variable separation being delimited slashes , not ampersands.

here current route code

>     $router->addroute( 'api-tapjoy', new zend_controller_router_route('api/tapjoy?snuid=:snuid&mac_address=:&mac_address&display_multiplier....etc.etc, array('controller'=>'api', 'action' =>'tapjoy'))); 

whenever remove ampersands , initial question mark , replace them slashes works. how can receive http request whilst using ampersands?

looks figured out. has nothing ampersands , slashes, etc. rather route wasn't created properly.

i thrown off this documentation on zf1's website routers:

the first parameter in zend_controller_router_route constructor route definition matched url. route definitions consist of static , dynamic parts separated slash ('/') character. static parts simple text: author. dynamic parts, called variables, marked prepending colon variable name: :username.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -