House of Fusion
Home of the ColdFusion Community

Search cf-talk

November 20, 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             

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

cfobject/cfinvoke best practices

  << 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:
John Ahlen
04/29/2008 11:09 AM

Hello All, I've gotten into the habit of beginning a page by creating an object:      <cfobject component="#application.cfcpath#reviews" name="reviews"> Below that, I use any number of cfinvokes thusly:             <cfinvoke component="#reviews#"                       method="getTopTenTitle"                             campus = "#URL.Campus#"                       returnvariable="qGetTopTenTitle"> In the component I'll have functions that are not called by the page.  They are used by other pages. When I turn a component into an object am I needlessly calling all the functions inside that component and is this not a good idea? Thanks in advance, John

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Tom Chiverton
04/29/2008 11:56 AM

> are used by other pages. When I turn a component into an object am I > needlessly calling all the functions inside that component and is this not Only functions explictly called as part of the request are run. And of course, the CFML is only compiled to Java once too. -- Tom Chiverton Helping to efficiently aggregate slick infomediaries on: http://thefalken.livejournal.com **************************************************** This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged.  If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents.   If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.


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

Mailing Lists