[Catalyst] Re: Accessing $c from Model

Christopher H. Laco claco at chrislaco.com
Fri Dec 29 19:56:33 GMT 2006


Daniel McBrearty wrote:
> FWIW ... : what I've noticed about using models (or not) ... :
> =

> 1. the advantage of using a model mostly seems to be that it
> autoloads, and then is accessible everywhere from $c. Otherwise, there
> doesn't seem to be much difference from just having a normal perl
> library.
> =

> 2. so if you just need data/logic for use in one controller, a
> standard library may be better.

I generally agree, with one more note. A model that can have different
settings for itself inside of Catalyst than it does as a standard module
outside of Catalyst.

Even then [for me], my Models are usual just glue between Cat specific
settings and the non-Cat perl library.

-=3DChris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20061229/16a6=
1ba3/signature.pgp


More information about the Catalyst mailing list