Using set() for custom global variables

106 views
Skip to first unread message

Rufhausen

unread,
Apr 15, 2010, 1:14:33 PM4/15/10
to ColdFusion on Wheels
Is it wrong to use the set() function for my own global variables?

I'm using the following in settings.cfm:
<cfset set(docRepositoryRoot = GetDirectoryFromPath(GetTemplatePath())
& "miscellaneous\docs\")>

Then I'm using get() to call it in various places in the app. In one
particular cfc function, I'm calling it several times and I started
getting the following error:
"docRepositoryRoot is undefined in a CFML structure referenced as part
of an expression"

If I create a local variable for #get("docRepositoryRoot")# and use
that going forward (.i.e., only asking for get(docRepositoryRoot)
once), it works fine:
<cfset docRoot = #get("docRepositoryRoot")#>

The following blog post related to Fusebox discussing this error
messages suggests that it might be too many concurrent requests for my
global variable that's causing it:
http://blog.razuna.com/2007/09/16/coldfusion-error-is-undefined-in-a-cfml-structure-referenced-as-part-of-an-expression/

Am I just misusing the set() and get() functions?

raulriera

unread,
Apr 15, 2010, 3:10:28 PM4/15/10
to ColdFusion on Wheels
Currently only set() and get() can set or retrieve a hard coded list
of variables... please file an enhancement request for this

On Apr 15, 1:14 pm, Rufhausen <rufhau...@gmail.com> wrote:
> Is it wrong to use the set() function for my own global variables?
>
> I'm using the following in settings.cfm:
> <cfset set(docRepositoryRoot = GetDirectoryFromPath(GetTemplatePath())
> & "miscellaneous\docs\")>
>
> Then I'm using get() to call it in various places in the app. In one
> particular cfc function, I'm calling it several times and I started
> getting the following error:
> "docRepositoryRoot is undefined in a CFML structure referenced as part
> of an expression"
>
> If I create a local variable for #get("docRepositoryRoot")# and use
> that going forward (.i.e., only asking for get(docRepositoryRoot)
> once), it works fine:
> <cfset docRoot = #get("docRepositoryRoot")#>
>
> The following blog post related to Fusebox discussing this error
> messages suggests that it might be too many concurrent requests for my

> global variable that's causing it:http://blog.razuna.com/2007/09/16/coldfusion-error-is-undefined-in-a-...

tpet...@gmail.com

unread,
Apr 15, 2010, 4:07:03 PM4/15/10
to ColdFusion on Wheels
take a look at the following threads:

http://groups.google.com/group/cfwheels/browse_thread/thread/644af7786038d95/2a6e38bab255b1e0
http://groups.google.com/group/cfwheels/browse_thread/thread/306ac9de56749be2

we've had this question a few times before. i think the consensus is
to use what i suggested in these threads

Chris Peters

unread,
Apr 15, 2010, 4:26:07 PM4/15/10
to cfwh...@googlegroups.com
I prefer storing custom application settings in the application scope. That's what it's there for, isn't it?

Why add a myapp key to application.wheels by using set() like that? I thought that application.wheels was for storing Wheels-specific settings.

I don't like the idea of advocating that it's OK to use set() to add keys that may cause naming collisions in a future release of Wheels. set(myApp.something="hi") seems harmless, but someone else may glance over this advice and start adding things like set(dataSource="mydsn"), which may or may not have the potential to really mess things up in the future.

--
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 cfwheels+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.


Per Djurner

unread,
Apr 15, 2010, 6:41:27 PM4/15/10
to cfwh...@googlegroups.com
I definitely do NOT recommend using set() / get() for anything other than Wheels settings.

If you want a similar way of handling things you can create your own set / get type functions to events/functions.cfm (that will make them available globally).
Obviously you can't name them exactly "set" / "get" though.

/ Per

raulriera

unread,
Apr 16, 2010, 12:40:32 PM4/16/10
to ColdFusion on Wheels
I don't know... I like the idea of using it to set custom app
information... like "plugins default settings".

On Apr 15, 6:41 pm, Per Djurner <per.djur...@gmail.com> wrote:
> I definitely do NOT recommend using set() / get() for anything other than
> Wheels settings.
>
> If you want a similar way of handling things you can create your own set /
> get type functions to events/functions.cfm (that will make them available
> globally).
> Obviously you can't name them exactly "set" / "get" though.
>
> / Per
>
> On Thu, Apr 15, 2010 at 10:26 PM, Chris Peters
> <ch...@clearcrystalmedia.com>wrote:
>
>
>
>
>
> > I prefer storing custom application settings in the application scope.
> > That's what it's there for, isn't it?
>
> > Why add a myapp key to application.wheels by using set() like that? I
> > thought that application.wheels was for storing Wheels-specific settings.
>
> > I don't like the idea of advocating that it's OK to use set() to add keys
> > that may cause naming collisions in a future release of Wheels.
> > set(myApp.something="hi") seems harmless, but someone else may glance over
> > this advice and start adding things like set(dataSource="mydsn"), which may
> > or may not have the potential to really mess things up in the future.
>
> > On Thu, Apr 15, 2010 at 4:07 PM, tpetru...@gmail.com <tpetru...@gmail.com>wrote:
>
> >> take a look at the following threads:
>
> >>http://groups.google.com/group/cfwheels/browse_thread/thread/644af778...
>
> >>http://groups.google.com/group/cfwheels/browse_thread/thread/306ac9de...
> >> cfwheels+u...@googlegroups.com<cfwheels%2Bunsubscribe@googlegroups.c om>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/cfwheels?hl=en.
>
> >  --
> > 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
> > cfwheels+u...@googlegroups.com<cfwheels%2Bunsubscribe@googlegroups.c om>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/cfwheels?hl=en.
>
> --
> 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 cfwheels+u...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/cfwheels?hl=en.

Mike Henke

unread,
Jun 4, 2010, 10:37:06 AM6/4/10
to ColdFusion on Wheels
Maybe there should be a scope for custom variables Wheels defines so
there aren't any collisions like Chris mentions?

Like set(customGlobalSettings.something="hi") then
customGlobalSettings would be reserved in wheels for this purpose so
no collisions occur across all Wheels applications.
> > >> cfwheels+u...@googlegroups.com<cfwheels%2Bunsubscr...@googlegroups.c om>
> > >> .
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/cfwheels?hl=en.
>
> > >  --
> > > 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
> > > cfwheels+u...@googlegroups.com<cfwheels%2Bunsubscr...@googlegroups.c om>

tpet...@gmail.com

unread,
Jun 4, 2010, 1:47:04 PM6/4/10
to ColdFusion on Wheels
@mike,

that's the same thing as use the myapp trick.

i don't see why using set() and get is such a bad idea. as long as you
use a container structure like "myapp" you shouldn't have collisions.

jmail

unread,
Jun 4, 2010, 3:01:31 PM6/4/10
to ColdFusion on Wheels
I was thinking about that what you can find in Smarty. You use

Smarty->assignVar('name', value);

and you can access this variable in template just lik {$varName}

So I was thinking about making Controller's var's globaly accessible
in view state (still thinking about that parsing engine for cfml ;) if
we've got the langs right now so the next step is to make better
"view" engine) Why better? Because you need to declare every parameter
which should be accessible in view. It's crazy oO We should have one
function assignVar or something to pass arguments into view. I don't
even look at Rails. I am thinking about the functionality and comfort
of use. For example I am building right now teh online game (ogame
clone) in wheels and you know what? That is deeply crazy. The smallest
view looks like that:

<!-- structures -->
<cfparam name="requirements">
<cfparam name="user">
<cfparam name="location">
<cfparam name="fleets">
<cfparam name="buildings">
<cfparam name="planets">
<cfparam name="messages">
<!-- vars -->
<cfparam name="lastMessage">
<cfparam name="lastBot">
<cfparam name="currPlanetId">
<cfparam name="isPro">
<cfparam name="proValidTo">
<cfparam name="skin">
<cfparam name="iconsSet">
<cfparam name="messangerType">

And don't even try to think about large objects oO like for example
global galaxy view.

And to be honest I am deeply sorry that I can't make something like
this (in Controller Main):

<cfset someVar = topController.new()> <!--- and here everything is
making in controller --->
<cfset someVar.executeSomeFunction()> <!--- which will set some vars
--->
<cfset someParsedPage = someVar.parsePage(action)> <!--- this will
return the parsed HTML form this controller and action--->
<cfset assignVar('someVarAccessibleInView', someParsedPage)> <!---
this will set the global var which will be accessible in view --->

And in view just make:

<cfoutput>
#someVarAccessibleInView'#
</cfoutput>

This will help me making something I need. And I think that this shoul
be made for sure in CFWheels - that is usually in PHP and if we want
to give PHP coders some alternative and / or show them that CF is cool
I think that we should do this

regards

jmail
> > > For more options, visit this group athttp://groups.google.com/group/cfwheels?hl=en.- Ukryj cytowany tekst -
>
> - Pokaż cytowany tekst -

Mike Henke

unread,
Jun 4, 2010, 3:34:09 PM6/4/10
to ColdFusion on Wheels
Maybe myapp should be a Wheels standard for global custom variables.
Or like Per mentioned maybe a setMyApp(something="hi") and
getMyApp(something) and that will set it into myapp or whatever Wheels
wants to call this.

tpet...@gmail.com

unread,
Jun 4, 2010, 3:34:55 PM6/4/10
to ColdFusion on Wheels
@jmail i think you posted this in the wrong thread ;)
> > > > For more options, visit this group athttp://groups.google.com/group/cfwheels?hl=en.-Ukryj cytowany tekst -

jmail

unread,
Jun 4, 2010, 3:48:04 PM6/4/10
to ColdFusion on Wheels
yes I know but I think that those three threads (MultiLanguage site,
community project, and this thread) could be joined into one thread
cause we are talking in every each threed about a future of Wheels.

regards

jmail
> > > > > For more options, visit this group athttp://groups.google.com/group/cfwheels?hl=en.-Ukryjcytowany tekst -
>
> > > - Pokaż cytowany tekst -- Ukryj cytowany tekst -

John C. Bland II

unread,
Jun 4, 2010, 7:35:19 PM6/4/10
to cfwh...@googlegroups.com
Check out how CodeIgniter (php) does it. I'd prefer a cleaner solution
than setMyApp(...).

-----------------------
John C. Bland II
[sent via mobile]

On Jun 4, 2010, at 12:47 PM, "tpet...@gmail.com"

John C. Bland II

unread,
Jun 5, 2010, 12:00:21 PM6/5/10
to cfwh...@googlegroups.com
Ok, now that I'm back at a computer. Here are more details as to my thoughts.


CI uses a few methods to get and load config files. I'd love this in Wheels.

Load a config:
$this->config->load('filename');
(you can also autoload through the config; which should be an option for us in /config/settings.cfm and in each environment)

Add an item to the config:
$this->config->set_item('item_name', 'item_value');

So, we could have a config file automatically loaded then later change those values based on whatever. A good use of this would be putting default site values in a config file then upon app load, query the database for dynamic settings and use those over the local. If the query fails, we can simply fall back to the default settings.

That's a not-as-likely scenario but folks will find their own reasons to use it. I'd personally welcome it big time.

I'd also like to be able to save the config again without having to manage XML or anything else. I'd like to call set_item (for instance), then call a config.save() to update it. Now it should let me save multiple files so we'd need some form of factory, or whatever, to load the different configs (custom named; not wheels forced).

Anyways...just my thoughts.

---
John C. Bland II
http://www.johncblandii.com
http://www.johnandseason.com
http://www.twitter.com/johncblandii
---
Suggested sites:
http://www.lifthimhigh.com - "Christian Products for Those Bold Enough to Wear Them"
http://www.sportsmatchmaker.com - "What are you doing today?"


this advice and start adding things like set(dataSource="mydsn"), which may
cfwheels+u...@googlegroups.com<cfwheels%2Bunsubscr...@googlegroups.c om>

.
For more options, visit this group at
http://groups.google.com/group/cfwheels?hl=en.
 --
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
cfwheels+u...@googlegroups.com<cfwheels%2Bunsubscr...@googlegroups.c om>

.
For more options, visit this group at
http://groups.google.com/group/cfwheels?hl=en.
--
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 cfwheels+u...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/cfwheels?hl=en.

--
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 cfwheels+u...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/cfwheels?hl=en.

--
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 cfwheels+u...@googlegroups.com.

Chris Peters

unread,
Jun 5, 2010, 1:02:53 PM6/5/10
to cfwh...@googlegroups.com
set() and get() are designed for setting and getting Wheels settings. We should keep in mind that people are using their own containers like myApp so that we don't break that in future versions of Wheels. But by using set() and get() for "your own thing," I guess you always run that risk. I'm sure that we'd hear plenty of feedback if we tried to change that though. :)

I guess my point is that CFML the language provides a simple scope for application settings: the application scope. That's what it was designed for! As long as you don't touch application.wheels, you should be fine. No need for the framework to reimplement what CFML already does. Any other approach is just a way of overcomplicating things.

I'm not in full agreement that we should have config files. We're trying to keep everything in CFML (or CFScript) here without introducing any other formats like INI, XML, or whatever. <cfset application.someSetting = "some value"> works well.

jmail

unread,
Jun 5, 2010, 3:11:22 PM6/5/10
to ColdFusion on Wheels
@John C. Bland II

you know what? If you need this why haven't you written the plugin for
that? I will tell you why - cause you are a lazy sober which still
asking for more and more. That's why the OpenSource projects are
dying. By the people like you. Everyone try to get what they need at
the moment and nobody is trying to help.

I have made this plugin for you http://cfwheels.org/plugins/listing/39
because I wanted to show that this is about 1 - 1.5 of hour for
prepare something like you need. Now you can use this plugin as you
wish, but maybe next time you'll try to make this by your own.

I had need for building a site in multilanguage support. Exiting
plugin wasn't good choice for me. So I hadn't sob for resolution from
team but I have written a plugin for what I need. And I gave it to the
community because I understand that the framework will be evolving
ONLY if the whole community help. 5 - 6 persons can't make everything
whole time for free. Think about it next time you will sob for
something

regards

jmail



On 5 Cze, 19:02, Chris Peters <ch...@clearcrystalmedia.com> wrote:
> set() and get() are designed for setting and getting Wheels settings. We
> should keep in mind that people are using their own containers like myApp so
> that we don't break that in future versions of Wheels. But by using set()
> and get() for "your own thing," I guess you always run that risk. I'm sure
> that we'd hear plenty of feedback if we tried to change that though. :)
>
> I guess my point is that CFML the language provides a simple scope for
> application settings: the application scope. That's what it was designed
> for! As long as you don't touch application.wheels, you should be fine. No
> need for the framework to reimplement what CFML already does. Any other
> approach is just a way of overcomplicating things.
>
> I'm not in full agreement that we should have config files. We're trying to
> keep everything in CFML (or CFScript) here without introducing any other
> formats like INI, XML, or whatever. <cfset application.someSetting = "some
> value"> works well.
>
> On Sat, Jun 5, 2010 at 12:00 PM, John C. Bland II <johncblan...@gmail.com>wrote:
>
>
>
> > Ok, now that I'm back at a computer. Here are more details as to my
> > thoughts.
>
> >http://codeigniter.com/user_guide/libraries/config.html(php mvc
> >http://www.lifthimhigh.com- "Christian Products for Those Bold Enough to
> > Wear Them"
> >http://www.sportsmatchmaker.com- "What are you doing today?"
>
> > On Fri, Jun 4, 2010 at 6:35 PM, John C. Bland II <johncblan...@gmail.com>wrote:
>
> >> Check out how CodeIgniter (php) does it. I'd prefer a cleaner solution
> >> than setMyApp(...).
>
> >> -----------------------
> >> John C. Bland II
> >> [sent via mobile]
>
> >> On Jun 4, 2010, at 12:47 PM, "tpetru...@gmail.com" <tpetru...@gmail.com>
> >>>>>>>> cfwheels+u...@googlegroups.com<cfwheels%2Bunsubscribe@googlegroups.c­om>
> >>>>>>>> <cfwheels%2Bunsubscr...@googlegroups.c om>
> >>>>>>>> .
> >>>>>>>> For more options, visit this group at
> >>>>>>>>http://groups.google.com/group/cfwheels?hl=en.
>
> >>>>   --
> >>>>>>> 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
> >>>>>>> cfwheels+u...@googlegroups.com<cfwheels%2Bunsubscribe@googlegroups.c­om>
> >>>>>>> <cfwheels%2Bunsubscr...@googlegroups.c om>
> >>>>>>> .
> >>>>>>> For more options, visit this group at
> >>>>>>>http://groups.google.com/group/cfwheels?hl=en.
>
> >>>>  --
> >>>>>> 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
> >>>>>> cfwheels+u...@googlegroups.com<cfwheels%2Bunsubscribe@googlegroups.c­om>
> >>>>>> .
> >>>>>> For more options, visit this group athttp://
> >>>>>> groups.google.com/group/cfwheels?hl=en.
>
> >>>>  --
> >>>>> 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
> >>>>> cfwheels+u...@googlegroups.com<cfwheels%2Bunsubscribe@googlegroups.c­om>
> >>>>> .
> >>>>> For more options, visit this group athttp://
> >>>>> groups.google.com/group/cfwheels?hl=en.
>
> >>> --
> >>> 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
> >>> cfwheels+u...@googlegroups.com<cfwheels%2Bunsubscribe@googlegroups.c­om>
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/cfwheels?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "ColdFusion on Wheels" group.
> > To post to this group, send
>
> ...
>
> więcej »- Ukryj cytowany tekst -

Mike Henke

unread,
Jun 5, 2010, 3:20:36 PM6/5/10
to ColdFusion on Wheels
@jmail please be polite and respectful. This is twice you have lashed
out at respected members of the Wheels and ColdFusion community.
Change the description also for your plugin. Wheels is about being
open and helpful.

Chris Peters

unread,
Jun 5, 2010, 3:25:13 PM6/5/10
to cfwh...@googlegroups.com
Jmail,

I know there is a slight language barrier as English is not your first language, but do not insult anyone. Let's not discourage people from sharing opinions, and let's definitely not insult anyone that we don't agree with.

2010/6/5 jmail <ad...@jmail.pl>
> >>>>>>>> cfwheels+u...@googlegroups.com<cfwheels%2Bunsu...@googlegroups.c-om>

> >>>>>>>> <cfwheels%2Bunsubscr...@googlegroups.c om>
> >>>>>>>> .
> >>>>>>>> For more options, visit this group at
> >>>>>>>>http://groups.google.com/group/cfwheels?hl=en.
>
> >>>>   --
> >>>>>>> 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
> >>>>>>> cfwheels+u...@googlegroups.com<cfwheels%2Bunsu...@googlegroups.c-om>

> >>>>>>> <cfwheels%2Bunsubscr...@googlegroups.c om>
> >>>>>>> .
> >>>>>>> For more options, visit this group at
> >>>>>>>http://groups.google.com/group/cfwheels?hl=en.
>
> >>>>  --
> >>>>>> 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
> >>>>>> cfwheels+u...@googlegroups.com<cfwheels%2Bunsu...@googlegroups.c-om>

> >>>>>> .
> >>>>>> For more options, visit this group athttp://
> >>>>>> groups.google.com/group/cfwheels?hl=en.
>
> >>>>  --
> >>>>> 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
> >>>>> cfwheels+u...@googlegroups.com<cfwheels%2Bunsu...@googlegroups.c-om>

> >>>>> .
> >>>>> For more options, visit this group athttp://
> >>>>> groups.google.com/group/cfwheels?hl=en.
>
> >>> --
> >>> 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
> >>> cfwheels+u...@googlegroups.com<cfwheels%2Bunsu...@googlegroups.c-om>

> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/cfwheels?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "ColdFusion on Wheels" group.
> > To post to this group, send
>
> ...
>
> więcej >>- Ukryj cytowany tekst -
>
> - Pokaż cytowany tekst -
--
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 cfwheels+u...@googlegroups.com.

jmail

unread,
Jun 5, 2010, 3:38:05 PM6/5/10
to ColdFusion on Wheels
@Mike Henke

As you wish

But I feel that I've got right. Everyone is talkig make this thing
make other thing make something else, but nobody wants to help by
making the plugins for example. I don't feel strong enough (especialy
in english for understand what and how to change things) to make
changes in wheels engine, but if there's anything I can make by the
plugin I will do.

Look I am the part of the community since 20th may and I have made two
plugins and both could be helpfull. I can't change myself. When I go
into the community and the community needs or wants help I giving
whole my heart for work and for expanding the community. And what I
don't understand and I can bite for it is that kind of behavior - Give
me somethinf. I don't want develop this by my one (shure I can) you
should give it to me :/

If you feel that I have offend someone in here that please accept my
appologize

regards

jmail

jmail

unread,
Jun 5, 2010, 3:44:35 PM6/5/10
to ColdFusion on Wheels
@Chris Peters

The problem is that I agree with John that this feature could be
helpfull but I don't agree with that kind of behavior. That what he
wants or needs can be easily prepared with a plugin. There is no need
to change the Wheels engine. So If you can make everything by yourself
why you are asking for that?

That is my attitude:

- if you can do something by yourself for yourself and for the rest of
the community and you don't want to do this then you are sponger not
the part of the community - if those words were too agressive then I
don't know how to write this in polite version :F

regards

jmail
> > open and helpful.- Ukryj cytowany tekst -

Chris Peters

unread,
Jun 5, 2010, 3:54:27 PM6/5/10
to cfwh...@googlegroups.com
I appreciate your taking initiative to create the plugins. We need contributors for things like plugins, the source code, blogging on our own blogs, etc.. You've been doing that for us, and that's awesome!

But just try to have more class and be more careful when you're addressing others in the community. Your work will not be appreciated if you make people feel bad. What's the point of doing the work then? That would not be good for anyone!

I have confidence that you can do that, and we all need for you to try. Trust me. :)

2010/6/5 jmail <ad...@jmail.pl>

--
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 cfwheels+u...@googlegroups.com.

John C. Bland II

unread,
Jun 6, 2010, 11:13:35 AM6/6/10
to cfwh...@googlegroups.com
@jmail
You're hilarious. We're discussing a feature. I provided my feedback on how I think it should be implemented. If I needed it, I'd write a plugin or provide a patch for the Wheels engine, which I have done twice this week for bugs I found.

Calm down and know who you're talking to before you attempt to correct someone.

My points about the feature implementation still stand.

Also, I will not respond to you about this me being "lazy" so any response you give will be moot.

Thanks,
http://www.lifthimhigh.com - "Christian Products for Those Bold Enough to Wear Them"
http://www.sportsmatchmaker.com - "What are you doing today?"


2010/6/5 jmail <ad...@jmail.pl>

--
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 cfwheels+u...@googlegroups.com.

John C. Bland II

unread,
Jun 6, 2010, 4:42:44 PM6/6/10
to cfwh...@googlegroups.com
Just read this one. Apology accepted.

-----------------------
John C. Bland II
[sent via mobile]

> --
> 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 cfwheels+u...@googlegroups.com

John C. Bland II

unread,
Jun 6, 2010, 4:48:53 PM6/6/10
to cfwh...@googlegroups.com
That's how I do it now: application.settings.

I'm fine with it stayin this way. I just don't really want to see get/set change.  It wouldn't be terrible though. 


-----------------------
John C. Bland II
[sent via mobile]

Joey

unread,
Jun 6, 2010, 7:52:58 PM6/6/10
to ColdFusion on Wheels
Firstly.... Lol.

Secondly, jmail - I think you're a talented developer, you just hit
the ground running. So far I think I've read every single thread
you've posted since 20th May, there's been some good stuff and some
not so good stuff... but keep going! The community needs as much input
& feedback as possible!

As for the original post, I remember asking this exact same
question...I've been using the...

<cfset loc.myapp = {}>
<cfset loc.myapp.title = "this is my site">
<cfset set(myapp = loc.myapp)>

For a few projects, there's nothing wrong with it... so far. Is it
worth having this in the docs? Rather than saying... "Dont use set()
for your app variables", but point people in the right direction from
the beginning...
> > On Sat, Jun 5, 2010 at 12:00 PM, John C. Bland II <johncblan...@gmail.com
> > > wrote:
> > Ok, now that I'm back at a computer. Here are more details as to my  
> > thoughts.
>
> >http://codeigniter.com/user_guide/libraries/config.html(php mvc  
> >http://www.lifthimhigh.com- "Christian Products for Those Bold  
> > Enough to Wear Them"
> >http://www.sportsmatchmaker.com- "What are you doing today?"
>
> > On Fri, Jun 4, 2010 at 6:35 PM, John C. Bland II <johncblan...@gmail.com
> > > wrote:
> > Check out how CodeIgniter (php) does it. I'd prefer a cleaner  
> > solution than setMyApp(...).
>
> > -----------------------
> > John C. Bland II
> > [sent via mobile]
>
> > On Jun 4, 2010, at 12:47 PM, "tpetru...@gmail.com" <tpetru...@gmail.com
> > 306ac9de...

Chris Peters

unread,
Jun 6, 2010, 8:02:23 PM6/6/10
to cfwh...@googlegroups.com
Couldn't hurt. :) I've taken note.

To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.

John C. Bland II

unread,
Jun 6, 2010, 8:39:03 PM6/6/10
to cfwh...@googlegroups.com
Def' wouldn't hurt. I didn't even know it was possible.


-----------------------
John C. Bland II
[sent via mobile]

Gary Herman

unread,
Jun 11, 2010, 2:44:35 PM6/11/10
to cfwh...@googlegroups.com
John,
 
Well said...

Gary


From: cfwh...@googlegroups.com [mailto:cfwh...@googlegroups.com] On Behalf Of John C. Bland II
Sent: Sunday, June 06, 2010 8:14 AM
To: cfwh...@googlegroups.com
Subject: Re: [cfwheels] Re: Using set() for custom global variables

John C. Bland II

unread,
Jun 11, 2010, 9:48:57 PM6/11/10
to cfwh...@googlegroups.com

Thx

On Jun 11, 2010 1:44 PM, "Gary Herman" <ghe...@jabico.com> wrote:

John,
 
Well said...

Gary


From: cfwh...@googlegroups.com [mailto:cfwh...@googlegroups.com] On Behalf Of John C. Bland II
Sent: Sunday, June 06, 2010 8:14 AM
To: cfwh...@googlegroups.com
Subject: Re: [cfwheels] Re: Using set() for custom global variables

> @jmail
> You're hilarious. We're discussing a feature. I provided my feedback on how I think it sh...

--

> You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" g...

--

You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" gro...

Reply all
Reply to author
Forward
0 new messages