I've been playing with 2 new test scripts today and I have the
following routers set in the bootstrap:
// Test Highlighting Router
$testhighlightingRoute = new Zend_Controller_Router_Route(
'/test/highlight/:id/:ratio/:xmldoc/:term',
array(
'module' => 'default',
'controller' => 'test',
'action' => 'highlight'
)
);
$router->addRoute('pages', $testhighlightingRoute);
// Test Display Image Router
$testdisplayimageRoute = new Zend_Controller_Router_Route(
'/test/displayimage/:id/:ratio',
array(
'module' => 'default',
'controller' => 'test',
'action' => 'displayimage'
)
);
$router->addRoute('pages', $testdisplayimageRoute);
This morning I added the first router and when I was happy with the
Action and Controller, I added the second router and set to work on
that Action and Controller. However now I've gone back to the first
controller and it no longer works. None of the variables I'm allowing
in the router (id, ratio,xmldoc,term) are getting set.
It's as if the second route is overwriting the first one some how.
Any ideas? I'm stumped.
--
Dan Field <[EMAIL PROTECTED]> Ffôn/Tel. +44 1970 632 582
Peiriannydd Meddalwedd Software Engineer
Llyfrgell Genedlaethol Cymru National Library of Wales