<include circuit=""/> was a feature that was inadvertently added in
FB4.1, for both PHP and CF, but only inside a <fuseaction> block. If
you tried to do that in a <pre or <postfuseaction> it would ignore the
circuit attribute and automatically use the one from the current
circuit instead.
This feature was officially supported in FB5.x.
Geoff, there is no official tag that works like include_once or
require_once, but you can fudge it:
<include template="udf_myFunction" circuit="functions"
contentvariable="udf['myFunction']" overwrite="false"
required="false"/> would work like include_once, provided you make
sure that the template you want to include once-only always has the
same ccv name. With overwrite="false" it will test for the variable
name first, before including it.
To make a require_once, just change to required="true", or delete that
attribute altogether since "true" is the default value.
HTH
Mike
http://www.fusebuilder.net
--- In PHP-fusebox@yahoogroups.com, "Geoffrey Hoffman"
<geoffrey.hoffman@...> wrote:
>
> I dunno. I thought that it was one of the last features added, but I
> didn't dig into finding out whether it was part of the spec or not.
> Seems like it ought to be if it isn't.
>
>
>
> On Sun, Aug 24, 2008 at 9:51 PM, Michael Omar Gatto
> <gatto_omar@...> wrote:
> > Meaning it was removed in 4.1.1 but existed in 4.1.0? Or, are
there other
> > core files floating around with that feature?
> >
> >
> > - Mike Gatto
>