MVCR pattern (was Re: [Catalyst] Bing!)
David Storrs
dstorrs at dstorrs.com
Thu Aug 11 16:43:07 CEST 2005
On Aug 11, 2005, at 10:27 AM, John Siracusa wrote:
> On 8/11/05 10:10 AM, David Storrs wrote:
>
>> All true, but orthogonal to what I'm talking about. Let's say you
>> define your generic ShoppingCart.pm module. Some part of your MVC app
>> needs to know which functions to call in ShoppingCart.pm--what I've
>> been talking about is what part that should be, the M or the C.
>>
>
> I think of the entire webapp itself as the "controller," the
> collection of
> ShoppingCart.pm-like modules you use in the app as the "model", and
> the
> templates as the views. That division may not match up exactly
> with the use
> of those terms in any particular framework, but there it is.
>
> -John
Well, as you say, it doesn't match either the historical or the
modern usage for the terms but if it makes you productive, go with
it. Thanks for the clarification.
--Dks
More information about the Catalyst
mailing list