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.

Reply via email to