ModuleConfig.cfc & addModuleRoutes

I've been messing with the parentSettings trying to override my
Coldbox.cfc in my root folder from my module to add the
addModuleRoutes logic. However I can't see to get it to work without
having a "addModuleRoutes is undefined" message.

I want my module to be completely independent of my applications..i.e.
drag and drop (they work after reload)

suggestions?

Not sure, what you mean?

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

I want all my modules to run and start without having entries in Coldbox.cfc. Is there a way to add " addModuleRoutes(pattern="/forgebox",module=“forgebox”); " from within ModuleConfig.cfc so I can make my modules truly portable?


Jeremy R. DeYoung
Phone: 615.261.8201

FacebookLinkedInGoogle ReaderTwitterAmazonGoogle
Google Talk/LunarFly Skype/DeYoungJD

You can, but there is a problem with this. If you do most likely they will be added after ALL the routes in the parent are added. So if in the parent the default route

pattern=":handler/:action?"

exists. Then none of your module routes will be added as they are added after this generic route. Also, all generic routes will be hit first. You can get create and add the routes by pre-pending them at the beginning instead of appending them. Would this satisfy your requirement.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com