PHP code example of mikehaertl / xreturnable

1. Go to this page and download the library: Download mikehaertl/xreturnable 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/ */

    

mikehaertl / xreturnable example snippets



echo CHtml::link('A link',
    $this->createReturnableUrl('user/edit',array('id'=>124))
);


$this->goBack()

 echo CHtml::link('Cancel',$this->getReturnUrl())