On Sun, Sep 5, 2010 at 9:42 AM, Kevin Waterson <[email protected]> wrote: > > On Sat, 2010-09-04 at 12:43 +0200, James Pic wrote: >> Care to Show us where you're blocked ? > > I am basing the router from the example on the website. > > <?php > > class zpRouter extends ezcMvcRouter > { > > public function createRoutes() > { > // ezcMvcRailsRoute( $url, $controller_name, > $method_name ) > return array( > new ezcMvcRailsRoute( '/gday', 'zpController', 'gday' ), > new ezcMvcRailsRoute( '/downloadTest', > 'zpTestController', 'download' ), > new ezcMvcRailsRoute( '/:name', 'zpController', > 'greetPersonally' ), > new ezcMvcRailsRoute( '/', 'zpController', 'greet' ), > ); > } > } > ?> > > -- > Kind regards > Kevin > > -------------------------------------------- > Chant Hare Krishna and be happy!! > -------------------------------------------- > >
Didn't you try to overload getRoutingInformation() in order to return an ezcMvcRoutingInformation with controller and action from $request->uri? I'll probably be able to code an example this afternoon, if you still need it ;) -- http://jamespic.com/contact Customer is king - Le client est roi - El cliente es rey.
