RE: Looking for MVC Framework Resources

2006-05-30 Thread Richard Kroll
Aaron, I'm not familiar with the code you are referring to, but this is generally done to encapsulate the data within the object, and manage access to that data. This allows you to alter / update how you manage that data internally without affecting any code that relies on the object itself, thus

Re: Looking for MVC Framework Resources

2006-05-30 Thread Matt Williams
More helpful resources: The most recent ColdFusion Weekly Podcast takes you on an Object Safari ( www.coldfusionweekly.com). You don't have to have an iPod, just something that will play an mp3. This diagram by Kurt Wiersma (and referred to in the podcast): http://www.coldfusionweekly.com/images/1

Re: Looking for MVC Framework Resources

2006-05-29 Thread James Holmes
Perhaps this will help with some of those questions: http://coldfusion.sys-con.com/read/42077.htm On 5/30/06, Aaron Roberson <[EMAIL PROTECTED]> wrote: > I'm getting closer to figuring this out... > > I am wondering, do you access class methods in the model layer > directly from the view layer a

Re: Looking for MVC Framework Resources

2006-05-29 Thread Aaron Roberson
I'm getting closer to figuring this out... I am wondering, do you access class methods in the model layer directly from the view layer and instance methods through the controller layer? I keep finding myself asking, "How do you pass an argument value to a class method? Also, when should you creat

Re: Looking for MVC Framework Resources

2006-05-29 Thread James Holmes
No. Properties in THIS can be overwritten from outside the component with no checks or business logic - getter and setter methods prevent this from happening. On 5/30/06, Aaron Roberson <[EMAIL PROTECTED]> wrote: > In Forta's model layer cfc (ArticleEntity.cfc) he creates a struct > named instance

Re: Looking for MVC Framework Resources

2006-05-29 Thread Aaron Roberson
Question about the conroller: In the controller layer of Forta's example (PublicationController.cfc), he has a block of script that sets the instance parameters values as follows: article.setTitle(form.title); article.setTeaser(form.teaser); article.setBody(form.body); article.setAuthor(

Re: Looking for MVC Framework Resources

2006-05-29 Thread Aaron Roberson
In Forta's model layer cfc (ArticleEntity.cfc) he creates a struct named instance. Wouldn't it be better to call the psuedo-constructor function and then just reference all of the values with the "this" keyword? In that case, would I still use the tages in the constructor area? I am new to OOP, so

Re: Looking for MVC Framework Resources

2006-05-29 Thread Aaron Roberson
EMAIL PROTECTED] > Sent: Monday, 29 May 2006 20:36 > To: CF-Talk > Subject: Looking for MVC Framework Resources > > I am wanting to design my application using the Model View Controller > (MVC) framework and I am wondering if anyone could list some good resouces > on getting sta

RE: Looking for MVC Framework Resources

2006-05-29 Thread Eric Roberts
Check out fusebox at fusebox.org (I think that's the right addy) Eric -Original Message- From: Aaron Roberson [mailto:[EMAIL PROTECTED] Sent: Monday, 29 May 2006 20:36 To: CF-Talk Subject: Looking for MVC Framework Resources I am wanting to design my application using the Model

Re: Looking for MVC Framework Resources

2006-05-29 Thread Nathan Drury
Hi Aaron This is a bit old now but the principles still apply - http://www.benorama.com/coldfusion/patterns/part2.htm I think Benoit does a good job of explaining MVC in CF terms. Cheers Nathan ~| Message: http://www.houseof

Looking for MVC Framework Resources

2006-05-29 Thread Aaron Roberson
I am wanting to design my application using the Model View Controller (MVC) framework and I am wondering if anyone could list some good resouces on getting started with MVC. I think I understand the concept, but I don't have much of a clue on how to actually implement it in my application. Hints, s