Installing Models with a Package

Permalink
I'm having some problems installing models I've defined during a package installation. I've looked through the concrete/controllers/install.php and can't seem to find where the models are actually being installed (just where they are loaded).

Any guidance would be appreciated.

joshhawthorne
 
ScottC replied on at Permalink Reply
ScottC
they are referenced :)

Loader::model('widget_details', 'widgets');

the second parameter is the package handle and needs to be there since it designates a folder outside of the root concrete5 concrete/models or siteroot/models directory
joshhawthorne replied on at Permalink Reply
joshhawthorne
That totally fixed it. Thank you so much Scott!