PHP code example of kekos / booya-viewstate

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

    

kekos / booya-viewstate example snippets


use Booya\LayoutController;
use Booya\ViewState\ControllerTrait as ViewStateTrait;

class IndexController extends LayoutController {
  use ViewStateTrait;

  public function index() {
    $this->viewState();
  }

  public function other_action() {
    $this->viewState();
  }
}

<a href="index/other_action echo uh($flow_qs); 

<a href="index echo uh($origin_qs); 

$this->redirectToOrigin('index');