Chis is right, forget about me... :)
On Dec 17, 7:11 pm, Chris Peters <
ch...@clearcrystalmedia.com> wrote:
> config/app.cfm maps directly to the Application.cfc's onApplicationStart.
> Usually you only use that file to set ColdFusion settings like
> SessionManagement. Because of this, you use the this scope to set
> application values.
>
> this.award becomes application.award elsewhere in your app I believe.
>
> I recommend setting application scope variables in
> events/onapplicationstart.cfm:
> <cfset application.award = 10>
>
> Some prefer to use config/settings.cfm as well, but I tend to only use that
> for Wheels settings.
>
> It all depends on your preferences and what makes most sense to you.
>
>
>
>
> > wrote:
> > Raul, thanks. Do they take the application scope?
>
> > I just tried this in config/app.cfm
>
> > <cfset application.award = 10>
>
> > But calling application.award from the my Model gives an "award" is
> > not defined in application.
>
> > On Dec 16, 6:12 pm, raulriera <
rierar...@gmail.com> wrote:
> > > You can place them at /config/app.cfm :)
>
> > > On Dec 16, 6:40 pm, Mohamad El-Husseini <
abitdo...@hotmail.com> wrote:
>
> > > > Let's say I have a few global variables I need to set, where would
> > > > they go? For example, I have the following variables for a sanitize
> > > > function:
>
> > > > <cfset variables.reTags = '<[^>]*(>|$)'>
> > > > <cfset variables.reWhitelist = '(?x)
> > ^</?(b(lockquote)?|code|d(d|t|l|
> > > > el)|em|h(1|2|3)|i|kbd|li|ol|p(re)?|s(ub|up|trong|trike)?|ul)>$ | ^<(b|
> > > > h)r\s?/?>$'>
>
> > > > I can set them in the Post.cfc model, but what if I had ones that
> > > > needed to be global?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "ColdFusion on Wheels" group.
> > To post to this group, send email to
cfwh...@googlegroups.com.
> > To unsubscribe from this group, send email to