addModuleRoutes(pattern="products",module="products");
All is good and I can access the module entry point by:

http://local.myapp.com/products:home/index
or
http://local.myapp.com/products
In my Home.cfc handler I have two functions - index() and add(). Both of these execute when I access like so:

http://local.myapp.com/products:home/index

http://local.myapp.com/products:home/add
According to the SES Default Route execution docs on the wiki - http://wiki.coldbox.org/wiki/Modules.cfm I should be able to access the add() method by:
http://local.myapp.com/products/add
however, this fires just takes me to the index function and I see the following the tracer log:
Invalid Module Event Called: products:add.index. The module: products is not valid. Valid Modules are: partners,products
This is what I have for route definitions within my ModuleConfig.cfc
routes = [
// Module Entry Point
{pattern="/", handler="Home",action="index"},
// Convention Routes
{pattern="/:handler/:action?"}
];
Any idea why I can't resolve /products/add/ ? The docs indicate that this should work.
Thanks.
Nolan
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To post to this group, send email to col...@googlegroups.com
To unsubscribe from this group, send email to coldbox-u...@googlegroups.com
For more options, visit this group at http://groups-beta.google.com/group/coldbox
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
routes = [
// Module Entry Point
{pattern="/", handler="Home",action="index"},
{pattern="/add", handler="Home",action="add"},
// Convention Route
{pattern="/:handler/:action?"}
];
to me it seems like something like products/add should just work by convention given the entry point is effectively products/index.
Thanks.
Nolan

