|
|||
|
Hi all,
I am trying to write a custom route that would detect "javascript.js" at the end of URLs and pass custom value generateJavascript=1 to whatever controller it matched. In all URL examples below, respective controllers should be passed generateJavascript=1 by the router: mysite.com/javascript.js mysite.com/controlpanel/javascript.js mysite.com/controlpanel/useraction/javascript.js .....and so on. The only thing I could come up with was: route.test.type = "Zend_Controller_Router_Route_Regex" route.test.route = "((? ?!javascript\.js).){0,})/javascript\.js"route.test.defaults.generateJavascript = 1 But it does not work because controller/action are not captured. Your help is greatly appreciated. Temuri |
![]() |
| Thread Tools | |
| Display Modes | |
|
|