So nobody has any ideas about this? I've tried changing the route to
"/about", "defaults" to "default" (thinking maybe there was a misprint
in the manual), and even moving the custom routes to a separate config
file from my general config. Still no luck.
I'm using ZF 1.6.2, and dumping $site_cfg shows that the routes have
indeed made it as far as the config object.
-------- Original Message --------
Subject: Custom Route loaded via Zend_Config not working
Date: Sat, 11 Oct 2008 22:25:23 +0100
From: Steven Szymczak <[EMAIL PROTECTED]>
To: [email protected]
As per the docs, I have a custom route defined in my site config file:
; Custom routes
routes.about.type = "Zend_Controller_Router_Route_Static"
routes.about.route = "about"
routes.about.defaults.controller = "index"
routes.about.defaults.action = "about"
Which I then load in the bootstrap file:
// Custom Routes
$router = new Zend_Controller_Router_Rewrite();
$router->addConfig($site_cfg, 'routes');
However, when I navigate to http://site/about, I get the following error:
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception'
with message 'Invalid controller specified (about)' in...
Can anybody shed some light on this? As far as I can tell, this is done
exactly as specified in the docs, so I have no idea why it's not working.
Cheers,
-- Steven