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...
Want to share photos of your group with the world? Add a group photo to Flickr.

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
include_once in circuit.xml?   Message List  
Reply | Forward Message #4128 of 4157 |
In looking at parsed files, when I <include
template="dsp_helloworld"/> it is included. Every time, even if it was
already included before.

In some cases this may be desirable (looping) but in other is isn't: I
am running into a situation where I get the "cannot redeclare
function" and am too lazy at the moment to figure out where exactly
the error template is getting included the second time... it would be
handy to be able to include_once and require_once from within the
circuit file.

Is there a way without messing with the fusebox parser? This is a PHP
Fusebox 4.1 site.

Thanks,
Geoff



Sun Aug 24, 2008 1:33 am

m2guru
Offline Offline
Send Email Send Email

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

In looking at parsed files, when I <include template="dsp_helloworld"/> it is included. Every time, even if it was already included before. In some cases this...
Geoffrey Hoffman
m2guru
Offline Send Email
Aug 24, 2008
1:33 am

Hey Geoff, sorry for the delay, This works for me: <include template="udf_myFunction" circuit="myUDFs" contentvariable="udf['myFunction']" overwrite="false"/> ...
Mike
starkraving2002
Online Now Send Email
Dec 1, 2009
3:27 am
< Prev Topic  |  Next Topic >
Advanced

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