Search

Hi!

Can somebody put me on a right path as how to use execute() to build a chained event.

What I am trying to achieve is a sign-up form where login details get saved into accounts section and then another event is triggered to save address data into Address Section with 'Linked User ID' as the user ID from the first event.

I know there was a straightforward way to do so gassed on Brendo's tutorial here... However, the some parts of it are now deprecated.

What I have right now is following:

public function load() { 
    if(isset($_POST['action']['members-sign-up']) ){ 
        return $this->execute();
    }
}

public function execute() {

    $_POST['fields']['remote-ip'] = $_SERVER['REMOTE_ADDR'];    
    return parent::execute(); 

}

How do I trigger the second event in the execute() and pass along the entry ID from the first field.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details