module onLoad issue

see this in docs for a module's config:

function onLoad(){
  // Register some tables in my database and activate some features
  controller.getModel('MyModuleService').activate();'Module #this.title# loaded correctly');

getModel is not avail in controller.

i need access to the model or need to announce a custom interception

You need to ask wirebox for the object.

Controller.getwirebox().get instance

Luis Majano
Ortus Solutions, Corp
Toll free phone/fax: 1-888-557-8057
Mobile: 909-248-3408

function onLoad(){

dumps an empty string.

Ahh you are using the IOC adapter right? Any reason of why you are using the adapter instead of model integration?

uses IOC & model.

this project was built using coldspring and im incorporating ORM (to
eventually phase out coldspring).

Ok, well, if you are using the ioc plugin, you need to talk to it then.


Luis F. Majano
Ortus Solutions, Corp

ColdBox Platform:
Linked In:
IECFUG Manager:


when i completely remove the IOC, i'll revisit this piece.

thanks, luis.