Zend routing, throws resource not found
- by bluedaniel
Ive got a url: http://dev.local/foodies/view?id=bluedaniel
and ive got in my bootstrap:
protected function _initRoute() {
$config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/routes.ini', 'production');
$router = new Zend_Controller_Router_Rewrite();
$router->addConfig($config, 'resources');
}
and
ive also got in my routes.ini:
[production]
resources.router.routes.foodies_view.route = ":foodies/:id"
resources.router.routes.foodies_view.defaults.module = "foodies"
resources.router.routes.foodies_view.defaults.controller = "view"
resources.router.routes.foodies_view.defaults.action = "index"
so http://dev.local/foodies/bluedaniel should work right?
I get a Resource 'foodies:bluedaniel' not found error however with this setup