Sorry, I don't appear to be awake today - I was thinking that I would have to 
fully specify the full path to an init file, and thus would need to require a 
mapping/fixed path.
But I don't need to do that at all. I just keep the _init with the rest of the 
tags and it works fine.

>Every tag in your library should include a "private" file from the
>taglib that defines the globals, in a conditional of course.  That way
>whatever tag is called first will prepare the request.  It'll add a
>bit of code to all your tag files, but it'll keep everything properly
>encapsulated inside the taglib.  For example:
>
>main.cfm/input.cfm/select.cfm/etc.
><cfif NOT structKeyExists(request, "__form_tag_library_initialized")>
>  <cfinclude template="_init.cfm" />
></cfif>
>...
>
>_init.cfm
><cffunction name="......." ...>
></cffunction>
><cfset request..... = .... />
>...
>
>cheers,
>barneyb
>
>On 10/31/06, Peter Boughton <[EMAIL PROTECTED]> wrote:
>>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258602
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to