Zend\Mvc\Controller\Plugin\PostRedirectGet
Plugin to help facilitate Post/Redirect/Get (http://en.wikipedia.org/wiki/Post/Redirect/Get)
Synopsis
class PostRedirectGet
extends AbstractPlugin
{
- // members
- protected Container $sessionContainer;
- // Inherited members from AbstractPlugin
- protected null|Dispatchable $controller;
- // methods
- public Traversable|false __invoke()
- public Container getSessionContainer()
- public PostRedirectGet setSessionContainer()
- protected Response redirect()
- // Inherited methods from AbstractPlugin
- public void setController()
- public null|Dispatchable getController()
Hierarchy
Members
protected
- $controller — Zend\Mvc\Controller\Plugin\null|Dispatchable
- $sessionContainer — Zend\Session\Container
Methods
protected
- redirect() — TODO: Good candidate for traits method in PHP 5.4 with FilePostRedirectGet plugin
public
- __invoke() — Perform PRG logic
- getSessionContainer()
- setSessionContainer()
Inherited from Zend\Mvc\Controller\Plugin\AbstractPlugin
public
- getController() — Get the current controller instance
- setController() — Set the current controller instance