brett
January 23, 2017, 8:08pm
1
If I have a module in my root application called ‘module1’ and then that has a modules folder in it with a module called ‘moduleB’, how is ‘moduleB’ referenced via the url? Would it be something like this?
http://www.mysite.com?event=module1:moduleB:main.default
Thanks.
Brett
No, you would still be able to use the module namespace, by itself, since that entrypoint is registered with the framework:
http://www.mysite.com?event=moduleB:main.default
or with rewrites
http://www.mysite.com/moduleB/main/default
No, you would still be able to use the module namespace, by itself, since that entrypoint is registered with the framework:
http://www.mysite.com?event=moduleB:main.default
or with rewrites
http://www.mysite.com/moduleB/main/default
No problem! You may also like to know your question spawned a Tip of the Week blog post:
https://www.ortussolutions.com/blog/tips-for-handling-coldbox-module-routing-with-nested-modules
Thanks!
~Brad
ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp
E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com