Design / Architecture questions

2 views
Skip to first unread message

RichardS

unread,
Nov 22, 2009, 10:17:26 AM11/22/09
to ColdBox Platform
Hi,

I'm a coldbox newbie and trying to refactor an existng (rather large)
app using coldbox.
I have 2 (for starters) questions :
1.is it OK to have cfincludes in a view?
2. Are there any examples of how to set up (call) the view when
dealing with frames? Do I set up the the layout to be the frame and
then load a view (content) in each frame?

Thank you
Richard

Luis Majano

unread,
Nov 23, 2009, 11:36:57 AM11/23/09
to col...@googlegroups.com
Please take a look at the coldbox dashboard application it uses frames.
> --
> You received this message because you are subscribed to the Google Groups "ColdBox: A ColdFusion Framework" group.
> To post to this group, send email to col...@googlegroups.com
> To unsubscribe from this group, send email to coldbox-u...@googlegroups.com
> For more options, visit this group at http://groups-beta.google.com/group/coldbox
> For more information, visit http://www.luismajano.com/projects/coldbox
> For Documentation, visit http://ortus.svnrepository.com/coldbox/trac.cgi

--
Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Richard Strong

unread,
Nov 24, 2009, 5:03:03 PM11/24/09
to col...@googlegroups.com
Thank you I will check it out.

I was looking through the docs and in the http://ortus.svnrepository.com/coldbox/trac.cgi/wiki/cbModelGuide tutorial in getUserByCredentials method a user object is created:

oUser = createObject ("component", "User").init ();

Where is the cfc for this?

Thanks

Tony G

unread,
Dec 7, 2009, 3:05:28 PM12/7/09
to ColdBox Platform
Richard,
That is just an example of a User model object that you can write.
It's not actually included in the framework.

-Tony

On Nov 24, 5:03 pm, Richard Strong <richard.str...@gmail.com> wrote:
> Thank you I will check it out.
>
> I was looking through the docs and in thehttp://ortus.svnrepository.com/coldbox/trac.cgi/wiki/cbModelGuidetutorial
> in getUserByCredentials method a user object is created:
>
> oUser = createObject ("component", "User").init ();
>
> Where is the cfc for this?
>
> Thanks
>
>
>
> On Mon, Nov 23, 2009 at 11:36 AM, Luis Majano <lmaj...@gmail.com> wrote:
> > Please take a look at the coldbox dashboard application it uses frames.
>
> > On Sunday, November 22, 2009, RichardS <richard.str...@gmail.com> wrote:
> > > Hi,
>
> > > I'm a coldbox newbie and trying to refactor an existng (rather large)
> > > app using coldbox.
> > > I have 2 (for starters) questions :
> > > 1.is it OK to have cfincludes in a view?
> > > 2. Are there any examples of how to set up (call) the view when
> > > dealing with frames? Do I set up the the layout to be the frame and
> > > then load a view (content) in each frame?
>
> > > Thank you
> > > Richard
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > "ColdBox: A ColdFusion Framework" group.
> > > To post to this group, send email to col...@googlegroups.com
> > > To unsubscribe from this group, send email to
> > coldbox-u...@googlegroups.com
> > > For more options, visit this group at
> >http://groups-beta.google.com/group/coldbox
> > > For more information, visithttp://www.luismajano.com/projects/coldbox
> > > For Documentation, visithttp://ortus.svnrepository.com/coldbox/trac.cgi
>
> > --
> > Luis F. Majano
> > President
> > Ortus Solutions, Corp
>
> > ColdBox Platform:http://www.coldbox.org
> > Linked In:http://www.linkedin.com/pub/3/731/483
> > Blog:http://www.luismajano.com
> > IECFUG Manager:http://www.iecfug.com
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "ColdBox: A ColdFusion Framework" group.
> > To post to this group, send email to col...@googlegroups.com
> > To unsubscribe from this group, send email to
> > coldbox-u...@googlegroups.com
> > For more options, visit this group at
> >http://groups-beta.google.com/group/coldbox
> > For more information, visithttp://www.luismajano.com/projects/coldbox
> > For Documentation, visithttp://ortus.svnrepository.com/coldbox/trac.cgi- Hide quoted text -
>
> - Show quoted text -

Richard Strong

unread,
Dec 7, 2009, 4:35:16 PM12/7/09
to col...@googlegroups.com
Hi Tony,

Thanks for the reply.
I understand that, but I would like to have a complete (explained) example that is considered best practice, that I can follow and see how all the pieces
fit together. In all my web searches I have found a few places but unfortunately they are incomplete and written by people who them selfs are trying to learn.
Not that it's anything wrong with it  (and I applaud them for taking the bull by the horn and running with it).
Now that the book is out I may buy it with the hope that it will fill up the holes.

Thanks
Richard

Tony G

unread,
Dec 8, 2009, 1:11:45 PM12/8/09
to ColdBox Platform
OK -- understood, Richard. Just keep in mind that "best practices" for
modeling your domain with CFCs is a subject all unto itself and not
specific to ColdBox. Specifics will depend on a lot of factors, such
as if you want to use a service-oriented architecture or if you're
using object-relational mapping (either CF9's built-in Hibernate or
frameworks such as Transfer or Reactor). So I'm not sure how deeply
the ColdBox book will go into it.
Actually, in the ColdBox Model Integration Guide that you linked to,
Luis has a good overview on the model layer at the beginning. I've
also found the code in the example applications that come with the
ColdBox bundle to be a very valuable resource for learning this stuff
(specially look at the different Blog app examples).
Adrian Moreno also wrote a pretty good series on his blog:

http://www.iknowkungfoo.com/blog/index.cfm/2007/8/22/Object-Oriented-Coldfusion--1--Intro-to-Objectcfc
> > > > > For more information, visithttp://
> >www.luismajano.com/projects/coldbox
> > > > > For Documentation, visithttp://
> > ortus.svnrepository.com/coldbox/trac.cgi
Reply all
Reply to author
Forward
0 new messages