Thank you,Martel. 2007/4/19, Martel Valgoerad <[EMAIL PROTECTED]>:
Jacky Chen wrote: > Hi all, > I want to specify a url such as > http://localhost/index.php?controller=index&action=view > <http://localhost/index.php?controller=index&action=view> and have it > dispatch properly,how? It should work out of the box. You just have to tell the request of your request base url if you use any routes: require_once 'Zend/Controller/Request/Http.php'; $request = new Zend_Controller_Request_Http(); $request->setBaseUrl('index.php'); $controller->setRequest($request); AND/OR make sure you don't have any routes (in order not to waste resources): require_once 'Zend/Controller/Router/Rewrite.php'; $router = new Zend_Controller_Router_Rewrite(); $router->removeDefaultRoutes(); $controller->setRouter($router); I suppose there should be some method for disabling the router altogether, like: $controller->disableRouter(); For now disabling the router is very hard. Even if you are determined enough to extend the dispatcher. And the router is designed as a filter to request so it is optional. -- Michael Minicki aka Martel Valgoerad | [EMAIL PROTECTED] | http://aie.pl/martel.asc =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "Make sure you have finished speaking before your audience has finished listening." -- Dorothy Sarnoff