this.entryPoint
setting. If an incoming URL has that specific pattern, then it will search for the module's routing table for a match.config/Router.cfc
. However, you will lose all module portability. We do this by using a method called addModuleRoutes()
method.addModuleRoutes(pattern, module)
: Insert the module routes at this location in the configuration file with the applied URL pattern.ModuleConfig.cfc
:/blog
pattern in the host that says, now look in the module simpleblog for routes. The left over part of the URL is nothing or /
so the pattern that matches is my first declared pattern:blog
handler and the showPosts
method. Now, let's say the next URL that comes is:simpleblog
module via the static /blog
entry point and then it tries to find a match for /2009/09
in the modules' routes and it does!