Torrent Girl wrote: >Have any of you used the request scope for things other than UDF's and is that >encouraged? > >(I am trying to settle a discussion with a friend who uses the request scope >for everything) > > > Only thing I have to add to what Dave and Mac have said is to remember that the request scope is available to template, including calls to custom tags. While this is very handy, you also have to be careful that you don't create conflicts between bespoke code and reused code. eg. using the same variable for 2 different purposes and values being lost or over written. It should also be noted that it is frowned upon to use request variables in the likes of custom tags as any external variables should really be passed in to the function, rather than assumed to exist in the calling application.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Save $10 Download ZoneAlarm Security Suite http://www.houseoffusion.com/banners/view.cfm?bannerid=66 Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1315 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
