On 8 Nov 2007, at 17:53, Michał Minicki wrote:
Dan Field wrote:
$router->addRoute('pages', $testhighlightingRoute);
$router->addRoute('pages', $testdisplayimageRoute);
It's as if the second route is overwriting the first one some
how. Any ideas? I'm stumped.
That's exactly what happened because you named both of the routes
the same - 'pages'. This name is used internally as an array key
for the routes collection.
Ah! So every route needs a unique identifier here?
Many thanks for the quick reply. That has fixed it all :)
--
Dan Field <[EMAIL PROTECTED]> Ffôn/Tel. +44 1970 632
582
Peiriannydd Meddalwedd Software Engineer
Llyfrgell Genedlaethol Cymru National Library of Wales