House of Fusion
Home of the ColdFusion Community

Search cf-talk

December 02, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31       

Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

making functions global in model glue

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Richard White
09/05/2008 01:16 PM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
s. isaac dealey
09/05/2008 02:37 PM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Richard White
09/05/2008 02:49 PM

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 >

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Raymond Camden
09/05/2008 03:00 PM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Richard White
09/05/2008 05:42 PM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Raymond Camden
09/05/2008 05:51 PM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Richard White
09/05/2008 06:25 PM

excellent, thanks for your help ray richard ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists