Search the web
Sign In
New User? Sign Up
PHP-fusebox · Fusebox methodologies in PHP
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
including a template located in another circuit   Message List  
Reply | Forward Message #4134 of 4157 |
Re: including a template located in another circuit

<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
>





Mon Aug 25, 2008 6:45 am

starkraving2002
Online Now Online Now
Send Email Send Email

Forward
Message #4134 of 4157 |
Expand Messages Author Sort by Date

I thought I was using Fusebox 4.1 but now I am not sure: When I do this in "circuit_A" : <include template="act_file" circuit="circuit_B" /> I get the...
Geoffrey Hoffman
m2guru
Offline Send Email
Aug 25, 2008
12:02 am

Yes, I get that too when I was sure I was using FB 4.1 from SVN. Annoying, but I just worked around it the usual way by adding wrapper fuseactions to call as...
Michael Omar Gatto
luckygomar
Offline Send Email
Aug 25, 2008
2:56 am

The PHP Fusebox 4.1.1 core files on Fusebox.org do not support it. On Sun, Aug 24, 2008 at 7:54 PM, Michael Omar Gatto...
Geoffrey Hoffman
m2guru
Offline Send Email
Aug 25, 2008
3:24 am

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...
Michael Omar Gatto
luckygomar
Offline Send Email
Aug 25, 2008
4:51 am

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...
Geoffrey Hoffman
m2guru
Offline Send Email
Aug 25, 2008
4:55 am

<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...
Mike
starkraving2002
Online Now Send Email
Aug 25, 2008
6:45 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help