PHP code example of adrianodemoura / redirect-post

1. Go to this page and download the library: Download adrianodemoura/redirect-post library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

adrianodemoura / redirect-post example snippets


 $this->loadComponent( 'RedirectPost.Redirect', ['storage'=>'session|cache|cookie']);

public function initialize()
{
    parent::initialize();
    $this->loadComponent('RedirectPost.Redirect');
}

$data = $this->request->getData();
$this->Redirect->save( ['action'=>'acton_target'], $data);
 
$data = $this->Redirect->read();

$this->Redirect->delete();

'RedirectPost\\' => array($vendorDir . '/adrianodemoura/redirect-post/src'),
'RedirectPost\\Test\\' => array($vendorDir . '/adrianodemoura/redirect-post/tests'),