[Catalyst] Model Instances vs. Model Classes - Round 2
Octavian Rasnita
octavian.rasnita at ssifbroker.ro
Wed May 18 05:42:52 GMT 2011
From: "Alejandro Imass" <alejandro.imass at gmail.com>
> 3) It is written somewhere (I couldn't find it before writing this but
> I know is in the POD somewhere) that it is not a good idea to pass the
> complete $c reference to the per-request object, but rather only the
> necessary pieces of $c. What are the implications of passing the
> complete $c ?
If you pass the context $c to the business model, and the business model
would need to access the attributes and methods offered by $c, then you
won't be able to use that business model outside of Catalyst because you
won't have the context variable available.
Octavian
More information about the Catalyst
mailing list