[Catalyst] Accessing a Controller from ~/script

Dermot paikkos at googlemail.com
Mon Mar 9 17:54:34 GMT 2009


2009/2/19 Kieren Diment <kieren at diment.org>:
>
> On 19/02/2009, at 11:58 PM, Dermot wrote:
>>>
>>> Check the 2008 advent calendar for ACCEPT_CONTEXT usage:
>>> http://dev.catalystframework.org/wiki/adventcalendararticles
>>
>>
>> Wow! that works but I am not sure where ACCEPT_CONTEXT comes into it.
>>
>
> That'd be if you needed to pass stuff from $c into the model to get it
> working properly.

I'd like to allow my stand alone model access to the configuration
values contained in MyApp->config. It seems like the tidy way to do
things. Does the ACCEPT_CONTEXT method allow me to do this? Is there
some kinda SUPER way I can grab config and make an accessor of it?

Thanx,
Dp.



More information about the Catalyst mailing list