Hi Ian,

On 16/03/2007, at 9:19 PM, Ian Warner wrote:

I now have this in my bootstrap:

// Configure the custom router
$router = new Zend_Controller_Router_Rewrite();
$router->removeDefaultRoutes();
$router->addConfig($config, 'routes');

And this in my config

routes.default.route               = ":module/:controller/:action/*"
routes.default.defaults.controller = test
routes.default.defaults.action     = test

Now when I load up I am expecting a error that it cant be found -0 but it
works fine ??

Do you have a TestController with Test action? If so, that is the reason for it working. Otherwise it does look right, but I'm no expert at this point.

I've always found it helpful to interject some debugging code into the ZF to just understand what's going on with the routing every time I need to do something new.

However I have seen examples of this on the list, so perhaps searching the archives might be a good place to start.

Thanks,
Andrew

_________________________
Andrew Yager, Managing Director
Real World Technology Solutions
ph: 1300 798 718 or (02) 9563 4840
fax: (02) 9563 4848 mob: 0405 152 568
http://www.rwts.com.au/
_________________________



Reply via email to