Thanks Stacy.  Yeah, I tried Request too, I was just hoping to get away 
from "request.query.field", but since everything is called as a module I 
think there is no way around it.  Its not a big deal, just something you 
sort of need to know up front so you can plan for it.

Regarding the directory layout of the MVC circuits, I agree that keeping 
each circuit as a separate MVC 'unit' seems to make sense to me, but 
I'll see what Hal or the others think about that.  Maybe there is a 
reason for keeping them all under one MVC directory and I just don't 
know what it is yet.  ;-)

Stacy Young wrote:
> 
> Hey Brian, good point man. (on the folder arrangement)...as for the 
> queries,
> have you tried setting them to request scope?
> 
> 
> -----Original Message-----
> From: Brian Kotek [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, March 26, 2002 1:34 PM
> To: [EMAIL PROTECTED]
> Subject: MVC Pattern
> 
> Hal (or anyone else who might know),
> 
> I was playing with the MVC pattern again last night and created some 
> nice little shopping cart and product list circuits that use MVC.  I 
> have two questions:
> 
> First, when breaking these down into Model, View, and Controller 
> circuits, is it better to do this:
> 
> parent
>     model
>         cart
>         products
>     view
>         cart
>         procucts
>     controller
>         cart
>         products
> 
> or this:
> 
> parent
>      mvccart
>         model
>         view
>         controller
>      mvcproducts
>         model
>         view
>         controller
> 
> it seems to me the second one would make it easier to 'drag and drop' 
> these mvc components because each is self contained.
> 
> My second question is, did anyone ever find a way around having to 
> reference queries and result sets using "caller.myquery" and in the 
> output using "caller.myquery.productid"?  Or is this just a side effect 
> of the MVC setup and it must be that way?
> 
> Thanks,
> 
> Brian
> 
> 
> 
> ---
> 
> 
> 
> 



---

==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================

Reply via email to