[Catalyst] context in ::V::TT::new()
luke saunders
luke.saunders at gmail.com
Tue Jul 19 21:42:00 CEST 2005
Looks good. Thanks for that.
On 7/19/05, Sebastian Riedel <sri at oook.de> wrote:
>
> Am 19.07.2005 um 15:31 schrieb luke saunders:
>
> > Somewhat off topic: It seems to me that it might be useful to have
> > some sort of context like object available at app start. Currently the
> > only place to store objects at that level is in MyApp->Config though
> > that seems unclean to me as objects stored may not be config related.
> > Another reason for some sort of app level object is to have access to
> > some debug methods (like $c->log->debug) before a request is made.
> >
> > One of the next things on my list is to look into Catalyst plugins and
> > what they are capable of, so it maybe that I could achieve what I want
> > by writing one of those.
> >
> > Would be interested to hear your thoughts.
>
> Just add class data to you app class.
>
> MyApp->mk_classdata('foo');
> MyApp->foo($someobject);
>
> The new pod on writing plugins should make it a bit more clear.
> http://dev.catalyst.perl.org/file/trunk/Catalyst/lib/Catalyst/Manual/
> WritingPlugins.pod
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>
More information about the Catalyst
mailing list