Menu

relocate url in circuit

Help
Anonymous
2004-08-14
2013-03-07
  • Anonymous

    Anonymous - 2004-08-14

    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&amp;message=EntryAdded" />

    i get a parse error when i try to do it.
    Any ideas?

    thanks.

     
    • Mike Ritchie

      Mike Ritchie - 2004-08-23

      Currently the tag would work like this:
      <relocate url="$self.'?fuseaction=util.main&amp;message=EntryAdded'" />

      The next version will not require the single quotes.

       
    • Khurram

      Khurram - 2005-01-29

      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?

       
    • tgknight

      tgknight - 2005-12-01

      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']}&amp;message=EntryAdded"/>
      ----------------------------------------------

       

Log in to post a comment.