Skip to Content.
Sympa Menu

comanage-dev - Re: [comanage-dev] getting model instance outside of controller

Subject: COmanage Developers List

List archive

Re: [comanage-dev] getting model instance outside of controller


Chronological Thread 
  • 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-



Archive powered by MHonArc 2.6.16.

Top of Page