2017 © Pedro Peláez
 

library booya-viewstate

Viewstate for Booya framework

image

kekos/booya-viewstate

Viewstate for Booya framework

  • Sunday, March 20, 2016
  • by Kekos
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Viewstate Booya PHP framework

Remembers query string-parameters used to render one view when user is going back to first view from another view., (*1)

Install

You can install Booya ViewState via Composer:, (*2)

composer require kekos/booya-viewstate

API

Use the viewstate as trait:, (*3)

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();
  }
}

In view index.php:, (*4)

<a href="index/other_action<?php echo uh($flow_qs); ?>">Go to other view</a>

In view other_action.php:, (*5)

<a href="index<?php echo uh($origin_qs); ?>">Go back to first view</a>

Redirect back to origin action

$this->redirectToOrigin('index');

Bugs and improvements

Report bugs in GitHub issues or feel free to make a pull request :-), (*6)

License

MIT, (*7)

The Versions

20/03 2016

dev-master

9999999-dev https://github.com/Kekos/booya-viewstate

Viewstate for Booya framework

  Sources   Download

MIT

The Requires

  • php >= 5.3.0

 

booya viewstate query-string

20/03 2016

v1.0.0

1.0.0.0 https://github.com/Kekos/booya-viewstate

Viewstate for Booya framework

  Sources   Download

MIT

The Requires

  • php >= 5.3.0

 

booya viewstate query-string