|
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
cfobject/cfinvoke best practices
Hello All, I've gotten into the habit of beginning a page by creating an object:John Ahlen 04/29/08 11:09 A > are used by other pages. When I turn a component into an object am ITom Chiverton 04/29/08 11:56 A 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 > 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.
|
Mailing Lists
|
Latest Fusion Authority Articles
|
||||||