|
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
making functions global in model glue
hiRichard White 09/05/08 01:16 P Joe added a "helpers" scope in MG 3 to make it easier to work with UDFs. isaac dealey 09/05/08 02:37 P thanks very much,Richard White 09/05/08 02:49 P MG3 is amazing... but it's also an alpha, and a changing product. IRaymond Camden 09/05/08 03:00 P thanks Ray, this is a good tip - we are building something that needs to be released commercially next month so i suppose we should get it up and running in MG2 and then when MG3 is officially released then we can make the migrationRichard White 09/05/08 05:42 P Sure, I've done that before. I'll have a util.cfc that others CFCs useRaymond Camden 09/05/08 05:51 P excellent, thanks for your help rayRichard White 09/05/08 06:25 P hi i am making my first model glue application and just want to know if i have got the following right: i want to make my reusable functions (e.g. cflib functions arrayconcat etc...) global to all of my cfc's so that i can access them at any time. am i right in thinking that i would create a cfc that contains all these functions then setup a bean in the coldspring.xml file for this cfc. Then every other cfc that i need to be able to use these functions i would need to create a reference to that bean in the init function of the cfc thanks richard Joe added a "helpers" scope in MG 3 to make it easier to work with UDF libraries. Ray posted a blog about this a little while ago: http://www.coldfusionjedi.com/index.cfm/2008/5/2/ModelGlue-3--The-New-Frakin-Awesomeness Of course, I have no idea which version you're using. :) But that gives you another option, and I must admit, I'm all about the options. :) -- s. isaac dealey ^ new epoch isn't it time for a change? ph: 781.769.0723 http://onTap.riaforge.org/blog thanks very much, i am actually using model glue 2, yet we are only just starting to use it - would you recommend that we start leaning model glue 3 - is there many changes and also benefits? thanks for your help richard ----- Excess quoted text cut - see Original Post for more ----- > isn't it time for a change? > ph: 781.769.0723 > > http://onTap.riaforge.org/blog > MG3 is amazing... but it's also an alpha, and a changing product. I launched CFLib with it, but that's because CFLib is my person little site, and not some multi-billion dollar business. If MG3 had crashed and burned, no one would be hurt. > thanks very much, > > i am actually using model glue 2, yet we are only just starting to use it - would you recommend that we start leaning model glue 3 - is there many changes and also benefits? > -- =========================================================================== Raymond Camden, VP of Software Dev, Broadchoice Email : ray@camdenfamily.com Blog : www.coldfusionjedi.com AOL IM : cfjedimaster Keep up to date with the community: http://www.coldfusionbloggers.org thanks Ray, this is a good tip - we are building something that needs to be released commercially next month so i suppose we should get it up and running in MG2 and then when MG3 is officially released then we can make the migration thanks for the advice. in the meantime do you think my original scenario of making functions global is the right way to go in MG2 thanks ----- Excess quoted text cut - see Original Post for more ----- ======> ===================================================================== > Raymond Camden, VP of Software Dev, Broadchoice > > Email : ray@camdenfamily.com > Blog : www.coldfusionjedi.com > AOL IM : cfjedimaster > > Keep up to date with the community: http://www.coldfusionbloggers. org Sure, I've done that before. I'll have a util.cfc that others CFCs use for misc crap. ----- Excess quoted text cut - see Original Post for more ----- -- =========================================================================== Raymond Camden, VP of Software Dev, Broadchoice Email : ray@camdenfamily.com Blog : www.coldfusionjedi.com AOL IM : cfjedimaster Keep up to date with the community: http://www.coldfusionbloggers.org excellent, thanks for your help ray richard ----- Excess quoted text cut - see Original Post for more -----
|
Mailing Lists
|
Latest Fusion Authority Articles
|
||||||