comanage-dev - Re: [comanage-dev] getting model instance outside of controller
Subject: COmanage Developers List
List archive
- From: Benn Oshrin <>
- To:
- Subject: Re: [comanage-dev] getting model instance outside of controller
- Date: Fri, 24 Feb 2012 16:09:44 -0500
On 2/24/12 2:59 PM, Scott Koranda wrote:
I think you can do this to get an instance of a model outside
of a controller:
$cmpEnrollConfig = ClassRegistry::init('CmpEnrollmentConfiguration');
I think I'll just do that. It's a lot simpler than setting global configs, which for many page renders won't be necessary.
Thanks,
-Benn-
- [comanage-dev] getting model instance outside of controller, Scott Koranda, 02/24/2012
- Re: [comanage-dev] getting model instance outside of controller, Benn Oshrin, 02/24/2012
Archive powered by MHonArc 2.6.16.