Maurice Fonk wrote:
new Zend_Controller_Router_Route('js/:file',
array(
'module' => 'jscsscompressor',
'controller' => 'index',
'action' => 'compress')
)
which works fine, as long as the javascript file I'm trying to request
isn't in a subdirectory of the js directory. If that is the case, I get:
If you add a slash it's like you would be adding another part to the URL, so
your route won't match that. Use Regex Route for your purpose:
new Zend_Controller_Router_Route_Regex('js/(.+)',
array(
'module' => 'jscsscompressor',
'controller' => 'index',
'action' => 'compress')
),
array(
1 => 'file'
),
'js/%s'
);
--
Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"In a mad world only the mad are sane." -- Akira Kurosawa