im getting an error when i try to relocate the url in a circuit...
my code looks like this:
<fuseaction name="addEntry">
<include template="qry_addEntry.php"/>
<relocate url="$self?fuseaction=util.main&message=EntryAdded" />
i get a parse error when i try to do it.
Any ideas?
thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
----------------------------------------------
// USE THESE VARIABLES TO REFERENCE THE FUSE AND FUESACTIONS WHEN CREATING LINKS
$self=$Site['path']."/".$application['fusebox']['defaultFilename'].".".$application['fusebox']['scriptFileDelimiter'];
$myself=$self.'?'.$application['fusebox']['fuseactionVariable'].'=';
----------------------------------------------
im getting an error when i try to relocate the url in a circuit...
my code looks like this:
<fuseaction name="addEntry">
<include template="qry_addEntry.php"/>
<relocate url="$self?fuseaction=util.main&message=EntryAdded" />
i get a parse error when i try to do it.
Any ideas?
thanks.
Currently the tag would work like this:
<relocate url="$self.'?fuseaction=util.main&message=EntryAdded'" />
The next version will not require the single quotes.
I'm assuming that the fusebox uses the PHP eval function to handle this functionality. Does this not open it up to severe security risks?
In your fusebox.init
----------------------------------------------
// USE THESE VARIABLES TO REFERENCE THE FUSE AND FUESACTIONS WHEN CREATING LINKS
$self=$Site['path']."/".$application['fusebox']['defaultFilename'].".".$application['fusebox']['scriptFileDelimiter'];
$myself=$self.'?'.$application['fusebox']['fuseactionVariable'].'=';
----------------------------------------------
In your circuit :
----------------------------------------------
<xfa name="UtilMain" value="util.main"/>
<relocate url="{$myself}{$XFA['UtilMain']}&message=EntryAdded"/>
----------------------------------------------