[Catalyst] Method to overload per request
John Lifsey - Contractor -
john.lifsey at nrl.navy.mil
Thu Aug 9 19:28:52 GMT 2007
Dylan Vanderhoof wrote:
>>
>> Is there a method in C::Req (or any other part of Cat) that I can
>> overload which is called only once per request? I thought
>> that would be
>> prepare, but it seems that is called several times per page load. Any
>> advice appreciated.
>>
>> John
>>
>
> MyApp::Controller::Root->auto?
>
> -Dylan
That would be fine on a per controller basis, but this is in a plugin
and should apply for any request to any controller.
John
More information about the Catalyst
mailing list