Zend routing, throws resource not found

Posted by bluedaniel on Stack Overflow See other posts from Stack Overflow or by bluedaniel
Published on 2010-03-18T00:15:40Z Indexed on 2010/03/18 0:21 UTC
Read the original article Hit count: 545

Filed under:
|
|
|

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

© Stack Overflow or respective owner

Related posts about php

Related posts about zend