Hi Kevin, James is used to frameworks so he gave you the main guideline, but it can be a bit hard to get for newcomers, as I was few months ago. To get in, you can have an ey to the example developped by the ezc team at this time. It's called the wire, you can check it out from the svn.
http://svn.ez.no/svn/ezcomponents/docs/examples/applications/TheWire/ It's nicely done so you can quickly learn. However, you will have to dig a bit into it to get what you want to do. Good luck. Max 2010/8/26 James Pic <[email protected]> > On Thu, Aug 26, 2010 at 7:26 AM, Kevin Waterson <[email protected]> wrote: > > I am looking at the example files in the MvcTools component. > > The routes include the hello test etc and all works well. > > How should this be structured if I simply want something like > > > > http://example.com/controller_name/method_name > > > > All you have to do is extend ezcMvcRouter, and overload > getRoutingInformation() to check for the controller and action names > from $request->uri. > > My personnal recommandation is to reuse actions in several urls with > different action configuration for more productivity. For example: > > /add/foo -> myAppController::add() with $table = foo > /add/bar -> myAppController::add() with $table = bar > > As always, feel free to ask on IRC if you need support to code it. > > -- > http://jamespic.com/contact > Customer is king - Le client est roi - El cliente es rey. >
